Replies: 1 comment 2 replies
-
This?... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Something like an integer
Response.retries
that would reveal how many times the transport had to retry the connection before succeeding. It would have to be implemented byhttpcore.HTTPConnection._connect
, andhttpcore.AsyncHTTPConnection._connect
, with matching plumbing up the stack.The reason why I'm looking for this is that we're trying to use the reconnect feature as a workaround for random connection errors that we can't quite explain yet, and want to gather some data, see if there are any patterns to them.
It might potentially be interesting to also get the exception instances that got raised during the retry loop, but it might also be too much unnecessary detail…? On the other hand, if retries for specified HTTP status codes get implemented, this level of detail might also become more interesting…?
Ideas, opinions?
Beta Was this translation helpful? Give feedback.
All reactions