Skip to content

Commit

Permalink
Update docs/user/advanced.rst
Browse files Browse the repository at this point in the history
fix indentation for note so it renders properly
  • Loading branch information
sigmavirus24 authored Dec 16, 2023
1 parent a64f32b commit 951dd15
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/user/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1123,11 +1123,11 @@ coffee.
r = requests.get('https://github.com', timeout=None)

.. note:: The connect timeout applies to each connection attempt to an IP address.
If multiple addresses exist for a domain name, the underlying ``urllib3`` will
try each address sequentially until one successfully connects.
This may lead to an effective total connection timeout *multiple* times longer
than the specified time, e.g. an unresponsive server having both IPv4 and IPv6
addresses will have its perceived timeout *doubled*, so take that into account
when setting the connection timeout.
If multiple addresses exist for a domain name, the underlying ``urllib3`` will
try each address sequentially until one successfully connects.
This may lead to an effective total connection timeout *multiple* times longer
than the specified time, e.g. an unresponsive server having both IPv4 and IPv6
addresses will have its perceived timeout *doubled*, so take that into account
when setting the connection timeout.

.. _`connect()`: https://linux.die.net/man/2/connect

0 comments on commit 951dd15

Please sign in to comment.