go/src/net/http
Pierre Carru 8bcf2834af net/http/httputil: make Switching Protocol requests (e.g. Websockets) cancelable
Ensures that a canceled client request for Switching Protocols
(e.g. h2c, Websockets) will cause the underlying connection to
be terminated.

Adds a goroutine in handleUpgradeResponse in order to select on
the incoming client request's context and appropriately cancel it.

Fixes #35559

Change-Id: I1238e18fd4cce457f034f78d9cdce0e7f93b8bf6
GitHub-Last-Rev: 3629c78493
GitHub-Pull-Request: golang/go#38021
Reviewed-on: https://go-review.googlesource.com/c/go/+/224897
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
2020-04-26 09:26:10 +00:00
..
cgi net/http/cgi: remove outdated TODO 2020-03-06 23:33:17 +00:00
cookiejar
fcgi
httptest
httptrace
httputil net/http/httputil: make Switching Protocol requests (e.g. Websockets) cancelable 2020-04-26 09:26:10 +00:00
internal
pprof net/http/pprof: allow "seconds" parameters to most profiles 2020-04-22 21:08:58 +00:00
testdata
alpn_test.go
client.go net/http: treat a nil Body from a custom RoundTripper as an empty one 2020-03-31 18:10:56 +00:00
client_test.go net/http: treat a nil Body from a custom RoundTripper as an empty one 2020-03-31 18:10:56 +00:00
clientserver_test.go
clone.go
cookie.go
cookie_test.go
doc.go
example_filesystem_test.go
example_handle_test.go
example_test.go
export_test.go
filetransport.go
filetransport_test.go
fs.go
fs_test.go
h2_bundle.go net/http: update bundled x/net/http2 2020-03-20 00:33:16 +00:00
header.go
header_test.go
http.go
http_test.go
jar.go
main_test.go
method.go
omithttp2.go net/http: fix handling of HTTP/2 upgrade failures 2020-03-03 16:04:34 +00:00
proxy_test.go
range_test.go
readrequest_test.go
request.go net/http: document that ParseForm consumes Request.Body 2020-01-08 15:48:04 +00:00
request_test.go
requestwrite_test.go
response.go
response_test.go
responsewrite_test.go
roundtrip.go
roundtrip_js.go net/http: release callbacks after fetch promise completes 2020-04-02 23:01:56 +00:00
serve_test.go net/http: fix Server.Shutdown race where it could miss an active connection 2020-04-21 23:23:30 +00:00
server.go net/http: fix Server.Shutdown race where it could miss an active connection 2020-04-21 23:23:30 +00:00
server_test.go
sniff.go
sniff_test.go
socks_bundle.go net/http: update bundled x/net/http2 2019-11-27 04:05:12 +00:00
status.go
transfer.go Revert "net/http: support gzip, x-gzip Transfer-Encodings" 2020-01-22 22:06:30 +00:00
transfer_test.go Revert "net/http: support gzip, x-gzip Transfer-Encodings" 2020-01-22 22:06:30 +00:00
transport.go net/http: fix handling of HTTP/2 upgrade failures 2020-03-03 16:04:34 +00:00
transport_internal_test.go
transport_test.go all: fix incorrect channel and API usage in some unit tests 2020-02-27 19:04:17 +00:00
triv.go