Skip to content

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

Merged
sigmavirus24 merged 3 commits intopsf:mainfrom
MestreLion:MestreLion-connection-timeout-note
Dec 16, 2023
Merged

Add note on connection timeout being larger than specified. Fix #5773#6600
sigmavirus24 merged 3 commits intopsf:mainfrom
MestreLion:MestreLion-connection-timeout-note

Conversation

@MestreLion
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

Comment thread docs/user/advanced.rst Outdated
fix indentation for note so it renders properly
Comment thread docs/user/advanced.rst
Add note about wall clock too
@sigmavirus24 sigmavirus24 merged commit 1ddf014 into psf:main Dec 16, 2023
@sigmavirus24
Copy link
Copy Markdown
Contributor

Thank you @MestreLion !

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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