Skip to content

Instantly share code, notes, and snippets.

@vkorbes
Created July 4, 2019 12:43
Show Gist options
  • Save vkorbes/b8d0fd5bcfa7163d8786a01a8de137aa to your computer and use it in GitHub Desktop.
Save vkorbes/b8d0fd5bcfa7163d8786a01a8de137aa to your computer and use it in GitHub Desktop.
> net/http.(*Server).Serve() /usr/local/go/src/net/http/server.go:2825 (PC: 0x6c685b)
2820: defer srv.trackListener(&l, false)
2821:
2822: var tempDelay time.Duration // how long to sleep on accept failure
2823: baseCtx := context.Background() // base is always background, per Issue 16220
2824: ctx := context.WithValue(baseCtx, ServerContextKey, srv)
=>2825: for {
2826: rw, e := l.Accept()
2827: if e != nil {
2828: select {
2829: case <-srv.getDoneChan():
2830: return ErrServerClosed
(dlv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment