Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http2: don't reuse connections that are experiencing errors
When a request on a connection fails to complete successfully, mark the conn as doNotReuse. It's possible for requests to fail for reasons unrelated to connection health, but opening a new connection unnecessarily is less of an impact than reusing a dead connection. Fixes golang/go#59690 Change-Id: I40bf6cefae602ead70c3bcf2fe573cc13f34a385 Reviewed-on: https://go-review.googlesource.com/c/net/+/486156 Run-TryBot: Damien Neil <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Bryan Mills <[email protected]>
- Loading branch information