aboutsummaryrefslogtreecommitdiff
path: root/src/net/http
diff options
context:
space:
mode:
authorDamien Neil <dneil@google.com>2025-11-19 14:35:20 -0800
committerGopher Robot <gobot@golang.org>2025-11-20 11:18:50 -0800
commitca37d24e0b9369b8086959df5bc230b38bf98636 (patch)
tree907df068b9208d0da1055583b6541b43640cc02e /src/net/http
parent4b740af56a864eeaf3504d7f873c3d3cb3fcd72e (diff)
downloadgo-ca37d24e0b9369b8086959df5bc230b38bf98636.tar.xz
net/http: drop unused "broken" field from persistConn
Change-Id: Ic65cf98c090c73299b5e88e642e91139315d8e52 Reviewed-on: https://go-review.googlesource.com/c/go/+/722221 Auto-Submit: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Nicholas Husin <husin@google.com> Reviewed-by: Nicholas Husin <nsh@golang.org>
Diffstat (limited to 'src/net/http')
-rw-r--r--src/net/http/transport.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/net/http/transport.go b/src/net/http/transport.go
index a560765d33..4e6b07f34d 100644
--- a/src/net/http/transport.go
+++ b/src/net/http/transport.go
@@ -2110,7 +2110,6 @@ type persistConn struct {
numExpectedResponses int
closed error // set non-nil when conn is closed, before closech is closed
canceledErr error // set non-nil if conn is canceled
- broken bool // an error has happened on this connection; marked broken so it's not reused.
reused bool // whether conn has had successful request/response and is being reused.
// mutateHeaderFunc is an optional func to modify extra
// headers on each outbound request before it's written. (the
@@ -2925,7 +2924,6 @@ func (pc *persistConn) closeLocked(err error) {
if err == nil {
panic("nil error")
}
- pc.broken = true
if pc.closed == nil {
pc.closed = err
pc.t.decConnsPerHost(pc.cacheKey)