New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed failure to try next host after single-host connection timeout #7368
base: master
Are you sure you want to change the base?
Conversation
Also updated the default ``ClientTimeout`` params to include ``sock_connect`` so that this correct behavior happens by default.
|
It's failing on all Windows tests. The stderr output looks like there might be a problem with proxy.py, but not really sure. @webknjaz has more experience with the proxy stuff, maybe he has an idea.
|
Might also be worth testing what specific change causes the test failure. Does the error happen if we change the default timeout, without the TimeoutError change? |
The error goes away if I temporarily revert the change to the default timeout. |
Yeah, I was wondering the other way. Maybe it's caused by the sock_connect timeout being reached, or maybe it's caused by the connection retry.. |
Whoops, sorry, I misread your earlier message. The same tests fail when the default timeout has |
OK, I guess it's an existing issue with sock_connect timeout then. |
Is there anything else you need from me on this PR? I wasn't really sure about the resolution (or lack thereof) of our last exchange. |
I don't think we can change the default if it's going to cause errors for all Windows users. So, we'll need to figure out a fix for that. I've not had a chance to look into it yet, but if you have time to figure that out, it'd help us get this done. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #7368 +/- ##
==========================================
- Coverage 97.27% 96.93% -0.35%
==========================================
Files 106 106
Lines 31402 31441 +39
Branches 3925 3930 +5
==========================================
- Hits 30547 30478 -69
- Misses 650 751 +101
- Partials 205 212 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@brettdh could you rebase the branch resolving the merge conflicts, to see if it'd pass? I think there were some fixes to the proxy tests last year. |
Still failing. I'm not sure it's related to the proxy anyway, I think this is just regular connections. |
What do these changes do?
See subject. Also updated the default
ClientTimeout
params to includesock_connect
so that this correct behavior happens by default.Are there changes in behavior for the user?
Yes; the default socket connect timeout changes from
None
(no timeout) to 30 seconds.Related issue number
Closes #7342.
Checklist
connector.py
; passing after.CONTRIBUTORS.txt
CHANGES
folder<issue_id>.<type>
for example (588.bugfix)issue_id
change it to the pr id after creating the pr.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.