]> Cypherpunks repositories - gostls13.git/commit
net/http: only decrement connection count if we removed a connection
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Sat, 19 Oct 2019 02:19:59 +0000 (22:19 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 29 Oct 2019 16:45:39 +0000 (16:45 +0000)
commit1a058cd04b7b902e59ff5584c7fda8ddfe388981
tree7b3e78f56bb650c12ffc79b05ef8e679d8939003
parente7ce8627b0adb0dfa8657c5186a1a53e1baad404
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 #34941

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