]> Cypherpunks repositories - gostls13.git/commit
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>
Tue, 24 Sep 2019 15:21:08 +0000 (15:21 +0000)
commiteb4e5defb41459703c82b50d456280870ee00cb2
tree05abafc6c2ccd3d748c45befa2facd020cd14751
parentc4fbaee8596bbab16ced99c1a1cc3229c37d4934
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 #34387

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