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 Explanation of why Timeout is Doubled. #6597

Closed
wants to merge 1 commit into from

Conversation

PraddyumnYadav
Copy link

Added Explanation for why Timeout is Doubled.

./docs/user/advanced.rst

+ **You need to be careful when using the timeout argument.**
+ If the specified domain has multiple IP addresses, `urllib3`_ will continue to try another IP address when the specified connection timeout is reached. Also, the connection timeout is applied for each attempt.
+ Requests are affected by this because you are using `urllib3`_.
+ This phenomenon can wait longer than you expect. Maybe it's the time that doubled the connection timeout.
+ Of course there may be more.
+ You can also consider extreme solutions, such as having the specified domain name return only one IP address.
+ For example, if DNS returns both IPv4 DNS records (A) and IPv6 DNS records (AAAA), patch it so that it does not return IPv6.
+ However, new issues may arise.

If it Suits Your Needs Consider Merging this Pull Request.

@sigmavirus24
Copy link
Contributor

Fixed by #6600

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.

None yet

2 participants