Skip to content
Myr

Merge pull request #294 from failberg/develop

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

Documentation fix: clarification of keep-alive behavior.

authored by Kenneth Reitz · committed by Kenneth Reitz · parents a76f492, 02f422d · Browse files · 1 file+2 added−0 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:docs/user/advanced.rst+2 added
78 unmodified lines
79----------8081Excellent news — thanks to urllib3, keep-alive is 100% automatic within a session! Any requests that you make within a session will automatically reuse the appropriate connection!8283Note that connections are only released back to the pool for reuse once all body data has been read; be sure to either set ``prefetch`` to ``True`` or read the ``content`` property of the ``Response`` object.8485If you'd like to disable keep-alive, you can simply set the ``keep_alive`` configuration to ``False``::8687 s = requests.session()88 s.config['keep_alive'] = False
169 unmodified lines