Skip to content

Commit

Permalink
fix: wait until all connections have been closed
Browse files Browse the repository at this point in the history
  • Loading branch information
johejo committed Apr 1, 2020
1 parent 6e2a3ec commit 0af3829
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http.go
Expand Up @@ -150,6 +150,7 @@ func (s *Server) serve(listener net.Listener) {
if err != nil && !errors.Is(err, http.ErrServerClosed) {
logger.Printf("ERROR: http.Serve() - %s", err)
}
<-idleConnsClosed
}

// tcpKeepAliveListener sets TCP keep-alive timeouts on accepted
Expand Down

0 comments on commit 0af3829

Please sign in to comment.