]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: http.Request.Context doc fix
authorAnmol Sethi <anmol@aubble.com>
Thu, 2 Jun 2016 02:35:09 +0000 (22:35 -0400)
committerAndrew Gerrand <adg@golang.org>
Thu, 2 Jun 2016 05:25:46 +0000 (05:25 +0000)
The comment on http.Request.Context says that the context
is canceled when the client's connection closes even though
this has not been implemented. See #15927

Change-Id: I50b68638303dafd70f77f8f778e6caff102d3350
Reviewed-on: https://go-review.googlesource.com/23672
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/net/http/request.go

index e8780dea943c975354647156e616642daae03eb6..dc5559282d0f1af771b9d6cf8d116b2284d99f16 100644 (file)
@@ -275,9 +275,9 @@ type Request struct {
 //
 // For outgoing client requests, the context controls cancelation.
 //
-// For incoming server requests, the context is canceled when either
-// the client's connection closes, or when the ServeHTTP method
-// returns.
+// For incoming server requests, the context is canceled when the
+// ServeHTTP method returns. For its associated values, see
+// ServerContextKey and LocalAddrContextKey.
 func (r *Request) Context() context.Context {
        if r.ctx != nil {
                return r.ctx