Skip to content
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

Add note on connection timeout being larger than specified. Fix #5773 #6600

Merged
merged 3 commits into from
Dec 16, 2023

Conversation

MestreLion
Copy link
Contributor

As requested, here's my take on a PR to improve documentation. I've tried to incorporate the suggestions made by @sigmavirus24 at a previous PR, by shifting the focus from "IPv4+IPv6" particular case to a more general (and correct) "multiple IPs" scenario.

If approved, this PR will also fix #5760, and supersede PRs #5776 and #6597



On servers with multiple IPs, such as IPv4 and IPv6, `urllib3` tries each address sequentially until one successfully connects, using the specified timeout for _each_ attempt, leading to a total connection timeout that is a _multiple_ of the requested time.
@MestreLion
Copy link
Contributor Author

Is there anything I can do on my part to fix the build errors, or are the docs test suite broken?

fix indentation for note so it renders properly
Add note about wall clock too
@sigmavirus24 sigmavirus24 merged commit 1ddf014 into psf:main Dec 16, 2023
6 of 28 checks passed
@sigmavirus24
Copy link
Contributor

Thank you @MestreLion !

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

Successfully merging this pull request may close these issues.

requests.get() timeout times out after twice the given value
2 participants