]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.13] net/http: remove http2 connections when no longer cached
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Sat, 21 Sep 2019 13:39:50 +0000 (09:39 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 26 Sep 2019 16:01:02 +0000 (16:01 +0000)
commit44a4250a57ca66967908bbedf442cf5db1376c91
tree11481dc9645bf3d570ecc2cad45526b747d7620f
parent4b1d9c468bad77b8a3c1a16dd0bcfd8e6b3f68f3
[release-branch.go1.13] net/http: remove http2 connections when no longer cached

When the http2 transport returns a NoCachedConnError, the connection
must be removed from the idle list as well as the connections per host.

Fixes #34498

Change-Id: I7875c9c95e694a37a339bb04385243b49f9b20d3
Reviewed-on: https://go-review.googlesource.com/c/go/+/196665
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/go/+/197377
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
src/net/http/transport.go
src/net/http/transport_test.go