diff --git a/src/net/http/server.go b/src/net/http/server.go index 25573d9594..f4639a6e08 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -2613,6 +2613,8 @@ func (srv *Server) shouldConfigureHTTP2ForServe() bool { return strSliceContains(srv.TLSConfig.NextProtos, http2NextProtoTLS) } +// ErrServerClosed is returned by the Server's Serve, ListenAndServe, +// and ListenAndServeTLS methods after a call to Shutdown or Close. var ErrServerClosed = errors.New("http: Server closed") // Serve accepts incoming connections on the Listener l, creating a