]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: document ErrServerClosed
authorKale Blankenship <kale@lemnisys.com>
Tue, 14 Feb 2017 16:11:07 +0000 (08:11 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 14 Feb 2017 16:36:23 +0000 (16:36 +0000)
Fixes #19085

Change-Id: Ib11b9a22ea8092aca9e1c9c36b1fb015dd555c4b
Reviewed-on: https://go-review.googlesource.com/36943
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/server.go

index 25573d95947979c79ab110f5912e736d1df36d79..f4639a6e083b353648d803156cbe8a00a64f9d5a 100644 (file)
@@ -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