1
0
mirror of https://github.com/golang/go synced 2024-11-19 10:24:43 -07:00
go/src/net/http
Brad Fitzpatrick fb394017f1 net/http: fix flaky TestTransportCancelBeforeResponseHeaders test
Add a couple more cases where we convert random network I/O errors
into errRequestCanceled if the request was forcefully aborted.

It failed ~1/1000 times without -race, or very easily with -race.
(due to -race randomizing some scheduling)

Fixes #11894

Change-Id: Ib1c123ce1eebdd88642da28a5948ca4f30581907
Reviewed-on: https://go-review.googlesource.com/18287
Reviewed-by: Russ Cox <rsc@golang.org>
2016-01-06 21:01:08 +00:00
..
cgi net/http/cgi: optimize internal function removeLeadingDuplicates a bit 2015-10-15 14:42:11 +00:00
cookiejar
fcgi net/http/fcgi: fix panic with malformed params record 2015-09-27 06:57:03 +00:00
httptest net/http/httptest: don't crash in mime sniffing if HeaderMap is nil 2015-12-10 18:51:54 +00:00
httputil net/http: relax recently-updated rules and behavior of CloseNotifier 2016-01-05 04:39:11 +00:00
internal net/http/internal: ignore chunk-extension when reading chunked encoding bodies 2015-11-10 08:17:58 +00:00
pprof net/http/pprof: stop profiling if client's connection closes 2016-01-06 05:51:38 +00:00
testdata
client_test.go net/http: make Client use Request.Cancel for timeouts instead of CancelRequest 2016-01-05 22:55:22 +00:00
client.go net/http: make Client use Request.Cancel for timeouts instead of CancelRequest 2016-01-05 22:55:22 +00:00
clientserver_test.go net/http: update bundled http2, add test for Transport's User-Agent behavior 2016-01-06 18:53:46 +00:00
cookie_test.go net/http: harden, document func SetCookie and type Cookie 2015-06-30 16:19:02 +00:00
cookie.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
doc.go
example_test.go net/http: add example for setting trailers in an Handler 2015-07-20 00:40:40 +00:00
export_test.go net/http: tighten protocol between Transport.roundTrip and persistConn.readLoop 2016-01-05 22:33:16 +00:00
filetransport_test.go
filetransport.go
fs_test.go net/http: run more tests in http2 mode 2015-12-10 04:43:08 +00:00
fs.go net/http: define File as an io.Seeker 2015-11-30 20:43:39 +00:00
h2_bundle.go net/http: update bundled http2, add test for Transport's User-Agent behavior 2016-01-06 18:53:46 +00:00
header_test.go
header.go net/http: make Client use Request.Cancel for timeouts instead of CancelRequest 2016-01-05 22:55:22 +00:00
http_test.go net/http: do not allow space or slash in Host headers 2015-07-15 03:15:59 +00:00
jar.go
lex_test.go
lex.go
main_test.go net/http: add mechanism for marking flaky http tests 2016-01-06 21:00:48 +00:00
method.go net/http: add method constants 2015-11-13 10:12:46 +00:00
npn_test.go
proxy_test.go
race.go
range_test.go
readrequest_test.go net/http: revert overly-strict part of earlier smuggling defense 2015-07-07 21:33:06 +00:00
request_test.go net/url: reject space in host; do not escape < > " in host 2015-12-11 05:17:38 +00:00
request.go net/http: update bundled http2, add test for Transport's User-Agent behavior 2016-01-06 18:53:46 +00:00
requestwrite_test.go net/http: change default user agent string 2015-06-26 17:29:35 +00:00
response_test.go net/http: ignore Transfer-Encoding for HTTP/1.0 responses 2015-10-13 01:04:42 +00:00
response.go net/http: update Response.Trailer doc 2015-12-17 02:46:04 +00:00
responsewrite_test.go
serve_test.go net/http: relax recently-updated rules and behavior of CloseNotifier 2016-01-05 04:39:11 +00:00
server.go net/http: relax recently-updated rules and behavior of CloseNotifier 2016-01-05 04:39:11 +00:00
sniff_test.go net/http: run more tests in http2 mode 2015-12-10 04:43:08 +00:00
sniff.go net/http: add/update mp4 sniffing 2015-11-17 18:00:15 +00:00
status.go net/http: add new HTTP 451 status code, Unavailable For Legal Reasons. 2015-12-22 02:14:22 +00:00
transfer_test.go
transfer.go net/http: relax recently-updated rules and behavior of CloseNotifier 2016-01-05 04:39:11 +00:00
transport_test.go net/http: fix flaky TestTransportCancelBeforeResponseHeaders test 2016-01-06 21:01:08 +00:00
transport.go net/http: fix flaky TestTransportCancelBeforeResponseHeaders test 2016-01-06 21:01:08 +00:00
triv.go net/http: document that [ListenAnd]Serve always returns a non-nil error 2015-08-20 12:13:41 +00:00