]> Cypherpunks.ru repositories - gostls13.git/commit
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)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 1 Dec 2020 19:31:47 +0000 (19:31 +0000)
commit212d385a2f723a8dd5e7d2e83efb478ddd139349
treedcefe9f6d0857a33c15b30c816d8c7a4bed2803f
parent4ef78b09c9ea54019e13fd19b2368960b155399f
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.

Fixes #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>
src/net/http/transport.go
src/net/http/transport_test.go