Skip to content

Commit

Permalink
http2: add a metric for debugging
Browse files Browse the repository at this point in the history
Updates tailscale/corp#12296

Signed-off-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
bradfitz committed Jun 26, 2023
1 parent dd4570e commit 874c5ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http2/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,10 @@ func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) {
// is set, for example, in which case retrying on a different connection
// will not help.
cs.cc.doNotReuse = true

if f := cs.cc.t.CountError; f != nil {
f("abort_set_do_not_reuse")
}
}
cs.cc.mu.Unlock()
// Wait for the request body to be closed.
Expand Down

0 comments on commit 874c5ea

Please sign in to comment.