diff options
Diffstat (limited to 'src/net/http/server.go')
| -rw-r--r-- | src/net/http/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/http/server.go b/src/net/http/server.go index c15f0f58cb..1ac61f7131 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -1749,7 +1749,7 @@ type closeWriter interface { var _ closeWriter = (*net.TCPConn)(nil) -// closeWrite flushes any outstanding data and sends a FIN packet (if +// closeWriteAndWait flushes any outstanding data and sends a FIN packet (if // client is connected via TCP), signaling that we're done. We then // pause for a bit, hoping the client processes it before any // subsequent RST. @@ -2990,7 +2990,7 @@ func (srv *Server) ListenAndServe() error { var testHookServerServe func(*Server, net.Listener) // used if non-nil -// shouldDoServeHTTP2 reports whether Server.Serve should configure +// shouldConfigureHTTP2ForServe reports whether Server.Serve should configure // automatic HTTP/2. (which sets up the srv.TLSNextProto map) func (srv *Server) shouldConfigureHTTP2ForServe() bool { if srv.TLSConfig == nil { |
