]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.13] net/http: only decrement connection count if we removed a...
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Sat, 19 Oct 2019 02:19:59 +0000 (22:19 -0400)
committerAlexander Rakoczy <alex@golang.org>
Tue, 11 Feb 2020 17:47:12 +0000 (17:47 +0000)
commit224a180deb2170478ebc516f12769f4f801d1c6a
treef7bc6d9d54987f6d3b4c8fd39f2282b4275145d9
parent17ac3f63480020773f1fe0ed77f05f0d37869196
[release-branch.go1.13] net/http: only decrement connection count if we removed a connection

The connection count must only be decremented if the persistent
connection was also removed.

Fixes #36583

Change-Id: I5070717d5d9effec78016005fa4910593500c8cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/202087
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/+/215177
Run-TryBot: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
src/net/http/transport.go
src/net/http/transport_test.go