04 2022 档案

摘要:golang net/http 可以非常方便的实现http server。 核心步骤: bind && listen accept 每收到一个链接,就启动一个协程进行处理,对于同一个长连接,保持1个go处理 直至链接结束。 而fasthtpp,据说是有workerPool,协程处理完后返回到pool 阅读全文
posted @ 2022-04-30 16:59 dancingwolves 阅读(124) 评论(0) 推荐(0)