]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.15] net/http: ignore connection closes once done with the connection
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Sat, 26 Sep 2020 15:20:16 +0000 (09:20 -0600)
committerDmitri Shuralyov <dmitshur@golang.org>
Tue, 2 Mar 2021 21:03:47 +0000 (21:03 +0000)
commit5de8d3bfcb060bbc61b9b9c945055fd3fb5b9607
tree54e87c253217bde1a751cb194c0454b8c86d6e1e
parentf75ab2d5a61f1a5aabaffe7752110e2dcd581236
[release-branch.go1.15] net/http: ignore connection closes once done with the connection

Once the connection is put back into the idle pool, the request should
not take any action if the connection is closed.

For #42935.
Updates #41600.

Change-Id: I5e4ddcdc03cd44f5197ecfbe324638604961de84
Reviewed-on: https://go-review.googlesource.com/c/go/+/257818
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Trust: Damien Neil <dneil@google.com>
(cherry picked from commit 212d385a2f723a8dd5e7d2e83efb478ddd139349)
Reviewed-on: https://go-review.googlesource.com/c/go/+/297909
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/net/http/transport.go
src/net/http/transport_test.go