最近发布的主题
最近发布的文章
- 关于Go tools的比较有用的flags at
- 空结构体 at
- 使用Go语言每分钟处理1百万请求(译) at
- Google 镜像站搜集 at
- 七牛上传小工具-Go语言版本 at
最近分享的资源
暂无
最近发布的项目
暂无
最近的评论
-
评论了博文 Go语言学习一——出身名门乱版了 亲
-
评论了主题 【公告】寻找社区日常运营、功能开发、维护 自愿者
-
评论了主题 【公告】寻找社区日常运营、功能开发、维护 自愿者志愿者 标题写错了
-
这个和哪个语言写的没关系,看看rpm、deb等打包方式如何打包以及systemd等知识即可。
-
评论了博文 Golang Http Server源码阅读``` for { rw, e := l.Accept() if e != nil { select { case <-srv.getDoneChan(): return ErrServerClosed default: } if ne, ok := e.(net.Error); ok && ne.Temporary() { if tempDelay == 0 { tempDelay = 5 * time.Millisecond } else { tempDelay *= 2 } if max := 1 * time.Second; tempDelay > max { tempDelay = max } srv.logf("http: Accept error: %v; retrying in %v", e, tempDelay) time.Sleep(tempDelay) continue } return e } tempDelay = 0 c := srv.newConn(rw) c.setState(c.rwc, StateNew) // before Serve can return go c.serve(ctx) } ```