Skip to content
Myr

Update docs/user/advanced.rst

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fix indentation for note so it renders properly

authored by Ian Stapleton Cordasco · committed by GitHub · parent a64f32b · Browse files · 1 file+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−6 removed

  • other:+6 added−6 removed

1 file+6 added−6 removed

modified:docs/user/advanced.rst+6 added-6 removed
1121 unmodified lines
11221123 r = requests.get('https://github.com', timeout=None)11241125.. note:: The connect timeout applies to each connection attempt to an IP address.1126If multiple addresses exist for a domain name, the underlying ``urllib3`` will1127try each address sequentially until one successfully connects.1128This may lead to an effective total connection timeout *multiple* times longer1129than the specified time, e.g. an unresponsive server having both IPv4 and IPv61130addresses will have its perceived timeout *doubled*, so take that into account1131when setting the connection timeout.1126 If multiple addresses exist for a domain name, the underlying ``urllib3`` will1127 try each address sequentially until one successfully connects.1128 This may lead to an effective total connection timeout *multiple* times longer1129 than the specified time, e.g. an unresponsive server having both IPv4 and IPv61130 addresses will have its perceived timeout *doubled*, so take that into account1131 when setting the connection timeout.11321133.. _`connect()`: https://linux.die.net/man/2/connect