go/src/net/http
Damien Neil e90f40284e [release-branch.go1.15] net/http: speed up and deflake TestCancelRequestWhenSharingConnection
This test made many requests over the same connection for 10
seconds, trusting that this will exercise the request cancelation
race from #41600.

Change the test to exhibit the specific race in a targeted fashion
with only two requests.

Fixes #47534.
Updates #41600.
Updates #47016.

Change-Id: If99c9b9331ff645f6bb67fe9fb79b8aab8784710
Reviewed-on: https://go-review.googlesource.com/c/go/+/339594
Trust: Damien Neil <dneil@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
(cherry picked from commit 6e738868a7)
Reviewed-on: https://go-review.googlesource.com/c/go/+/339829
2021-08-04 16:42:14 +00:00
..
cgi [release-branch.go1.15-security] net/http/cgi,net/http/fcgi: add Content-Type detection 2020-09-01 12:31:45 +00:00
cookiejar
fcgi [release-branch.go1.15] net/http/fgci: skip flaky test 2020-09-02 17:40:55 +00:00
httptest net/http: reject HTTP/1.1 Content-Length with sign in response 2020-05-31 00:55:05 +00:00
httptrace
httputil [release-branch.go1.15] net/http/httputil: close incoming ReverseProxy request body 2021-08-02 22:22:46 +00:00
internal
pprof net/http/pprof: document the trace endpoint is for execution trace 2020-05-09 04:46:25 +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 net/http: use ASCII space trimming throughout 2020-05-06 16:25:52 +00:00
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 net/http: fix panic with If-None-Match value in http.ServeContent 2020-06-29 14:56:46 +00:00
fs_test.go net/http: fix panic with If-None-Match value in http.ServeContent 2020-06-29 14:56:46 +00:00
h2_bundle.go [release-branch.go1.15] net/http: update bundled x/net/http2 2021-03-29 15:50:44 +00:00
header.go
header_test.go
http.go net/http: remove badStringError, make some unexported structs non-comparable 2020-05-01 05:30:49 +00:00
http_test.go
jar.go
main_test.go
method.go
omithttp2.go [release-branch.go1.15] net/http: fix detection of Roundtrippers that always error 2021-03-29 15:50:54 +00:00
proxy_test.go net/http: remove badStringError, make some unexported structs non-comparable 2020-05-01 05:30:49 +00:00
range_test.go
readrequest_test.go
request.go [release-branch.go1.15] net/http: deep copy Request.TransferEncoding 2020-10-23 21:35:30 +00:00
request_test.go [release-branch.go1.15] net/http: deep copy Request.TransferEncoding 2020-10-23 21:35:30 +00:00
requestwrite_test.go
response.go net/http: remove badStringError, make some unexported structs non-comparable 2020-05-01 05:30:49 +00:00
response_test.go net/http: only support "chunked" in inbound Transfer-Encoding headers 2020-05-06 16:25:30 +00:00
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: only support "chunked" in inbound Transfer-Encoding headers 2020-05-06 16:25:30 +00:00
server.go net/http: synchronize "100 Continue" write and Handler writes 2020-07-14 17:12:34 +00:00
server_test.go
sniff.go
sniff_test.go
socks_bundle.go
status.go
transfer.go net/http: reject HTTP/1.1 Content-Length with sign in response 2020-05-31 00:55:05 +00:00
transfer_test.go net/http: reject HTTP/1.1 Content-Length with sign in response 2020-05-31 00:55:05 +00:00
transport.go [release-branch.go1.15] net/http: fix detection of Roundtrippers that always error 2021-03-29 15:50:54 +00:00
transport_internal_test.go
transport_test.go [release-branch.go1.15] net/http: speed up and deflake TestCancelRequestWhenSharingConnection 2021-08-04 16:42:14 +00:00
triv.go