]> Cypherpunks repositories - gostls13.git/commit
net/http: if context is canceled, return its error
authorIan Lance Taylor <iant@golang.org>
Fri, 15 Jul 2016 22:30:53 +0000 (15:30 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 23 Aug 2016 05:31:45 +0000 (05:31 +0000)
commit0b5f2f0d1149bcff3c6b08458d7ffdd96970235c
tree6f0d6782a121394a103e28f0a6d0e006908c8ad9
parent643b9ec07c3a0e440a2b1669896d7a4b4d4dd64b
net/http: if context is canceled, return its error

This permits the error message to distinguish between a context that was
canceled and a context that timed out.

Updates #16381.

Change-Id: I3994b98e32952abcd7ddb5fee08fa1535999be6d
Reviewed-on: https://go-review.googlesource.com/24978
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/client_test.go
src/net/http/transport.go
src/net/http/transport_test.go