Skip to content

Conversation

btasker
Copy link

@btasker btasker commented Apr 28, 2023

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

Also adds additional information to the GOAWAY retry test in
order to help troubleshoot observed test failures

This re-uses dniel's solution from https://go-review.googlesource.com/c/net/+/486156

btasker added 2 commits April 28, 2023 15:59
This adds @dniel's changes from https://go-review.googlesource.com/c/net/+/486156 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
@gopherbot
Copy link
Contributor

This PR (HEAD: ef8ed4e) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/net/+/490335 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants