]> Cypherpunks repositories - gostls13.git/commit
net/http: clarify Request.Context's lifetime
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 1 Dec 2016 16:50:00 +0000 (16:50 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 1 Dec 2016 17:42:25 +0000 (17:42 +0000)
commit208d4d222786f3e51749a6b50e4f3fd8f8d9777f
tree770d63ba32f9078dcd416c4fb0c0210a6da40c6f
parente5e05627745764fb9989bf3966919d6715f21abc
net/http: clarify Request.Context's lifetime

Reverts https://golang.org/cl/23672 and tweaks the text to clarify
HTTP/2 request cancelations also cancel the context (not just closing
the TCP conn).

Fixes #18143

Change-Id: I9f838e09b906d455c98f676e5bc5559f8f7ecb17
Reviewed-on: https://go-review.googlesource.com/33769
Reviewed-by: Chris Broadfoot <cbro@golang.org>
src/net/http/request.go