net/http2
Bryan C. Mills 6960703597 http2: log the correct error when retrying in (*Transport).RoundTripOpt
On the shouldRetryRequest path, err is invariantly nil, and therefore
meaningless to log with vlogf. Instead, log the original error returned
by the call to cc.RoundTrip.

For golang/go#59155.

Change-Id: I82c00a6033d0e92c28a5ccf60a87eec1c8b41886
Reviewed-on: https://go-review.googlesource.com/c/net/+/477876
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2023-03-20 20:17:49 +00:00
..
h2c http2/h2c: handle errors when reading HTTP/1 request body 2022-11-04 16:29:52 +00:00
h2i http2/h2i: update install documentation 2022-07-06 16:39:47 +00:00
hpack http2/hpack: avoid quadratic complexity in hpack decoding 2023-02-14 17:04:22 +00:00
testdata all: fix typos 2021-07-26 21:34:35 +00:00
.gitignore http2: move github.com/bradfitz/http2 down into a new http2 directory 2015-09-24 09:24:40 +02:00
Dockerfile http2: update curl download location in Dockerfile 2021-04-14 19:42:28 +00:00
Makefile http2: move github.com/bradfitz/http2 down into a new http2 directory 2015-09-24 09:24:40 +02:00
ascii.go http2: check that Unicode-aware functions are not used 2021-06-10 13:23:58 +00:00
ascii_test.go http2: switch to ASCII equivalents of string functions 2021-05-10 09:51:57 +00:00
ciphers.go all: use HTTPS for iana.org links 2018-01-24 06:09:56 +00:00
ciphers_test.go http2: fix spec document links 2022-08-02 22:28:14 +00:00
client_conn_pool.go http2: add newly dialed conns to the pool before signaling completion 2022-06-15 17:15:55 +00:00
databuffer.go http2: replace fixedBuffer with dataBuffer 2017-02-24 20:07:17 +00:00
databuffer_test.go http2: remove support for Go 1.8 and earlier 2018-11-01 15:51:06 +00:00
errors.go net/http2: omit invalid header value from error message 2022-04-03 10:30:23 +00:00
errors_test.go http2: update copyright headers 2015-10-14 04:32:53 +00:00
flow.go all: fix some comments 2023-02-08 14:49:55 +00:00
flow_test.go http2: rewrite inbound flow control tracking 2023-01-03 19:04:08 +00:00
frame.go http2: avoid referencing ResponseWrite.Write parameter after returning 2023-02-13 18:55:50 +00:00
frame_test.go net/http2: omit invalid header value from error message 2022-04-03 10:30:23 +00:00
go111.go all: go fmt ./... 2021-02-20 03:31:24 +00:00
go115.go crypto/tls: don't use tls.Dialer on pre-Go1.15 systems 2021-05-05 21:49:59 +00:00
go118.go http2: improve handling of slow-closing net.Conns 2022-02-25 17:22:49 +00:00
gotrack.go http2: update copyright headers 2015-10-14 04:32:53 +00:00
gotrack_test.go http2: reset DebugGoroutines after testing it 2015-12-21 12:44:09 +00:00
headermap.go http2: add common header caching to Transport to reduce allocations 2022-11-02 18:17:56 +00:00
http2.go http2: fix spec document links 2022-08-02 22:28:14 +00:00
http2_test.go http2: check that Unicode-aware functions are not used 2021-06-10 13:23:58 +00:00
not_go111.go all: go fmt ./... 2021-02-20 03:31:24 +00:00
not_go115.go crypto/tls: don't use tls.Dialer on pre-Go1.15 systems 2021-05-05 21:49:59 +00:00
not_go118.go http2: improve handling of slow-closing net.Conns 2022-02-25 17:22:49 +00:00
pipe.go http2: properly discard data received after request/response body is closed 2023-03-09 22:21:42 +00:00
pipe_test.go http2: properly discard data received after request/response body is closed 2023-03-09 22:21:42 +00:00
server.go http2: properly discard data received after request/response body is closed 2023-03-09 22:21:42 +00:00
server_push_test.go http2: remove support for Go 1.8 and earlier 2018-11-01 15:51:06 +00:00
server_test.go http2: properly discard data received after request/response body is closed 2023-03-09 22:21:42 +00:00
transport.go http2: log the correct error when retrying in (*Transport).RoundTripOpt 2023-03-20 20:17:49 +00:00
transport_go117_test.go http2: use (*tls.Dialer).DialContext in dialTLS 2021-05-04 13:21:25 +00:00
transport_test.go http2: rewrite inbound flow control tracking 2023-01-03 19:04:08 +00:00
write.go http2: switch to ASCII equivalents of string functions 2021-05-10 09:51:57 +00:00
writesched.go http2: prioritize RST_STREAM frames in random write scheduler 2021-12-08 00:02:02 +00:00
writesched_priority.go http2: prioritize RST_STREAM frames in priority write scheduler 2022-05-31 18:57:40 +00:00
writesched_priority_test.go http2: prioritize RST_STREAM frames in priority write scheduler 2022-05-31 18:57:40 +00:00
writesched_random.go http2: prioritize RST_STREAM frames in random write scheduler 2021-12-08 00:02:02 +00:00
writesched_random_test.go http2: prioritize RST_STREAM frames in random write scheduler 2021-12-08 00:02:02 +00:00
writesched_test.go http2: prioritize RST_STREAM frames in random write scheduler 2021-12-08 00:02:02 +00:00
z_spec_test.go x/net/http2: Fix various typos in doc comments. 2016-09-16 03:37:56 +00:00