diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2011-11-30 12:45:17 -0500 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2011-11-30 12:45:17 -0500 |
| commit | 7fbbdeb32430a6078797edc71db8e58bb676da97 (patch) | |
| tree | 6cb2cc459160a384a14313fe68aee5335b3159e2 /docs/user | |
| parent | f7e4832472911bca058a4669d2e204792dbc8fbb (diff) | |
| parent | 4ed16d99c244c93307e98bd99607a239a8ec63a2 (diff) | |
| download | python-requests-7fbbdeb32430a6078797edc71db8e58bb676da97.tar.gz | |
Merge remote-tracking branch 'origin/develop' into develop
Diffstat (limited to 'docs/user')
| -rw-r--r-- | docs/user/advanced.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index e1b7d141..9d1a9431 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -80,6 +80,8 @@ Keep-Alive Excellent 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! +Note 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. + If you'd like to disable keep-alive, you can simply set the ``keep_alive`` configuration to ``False``:: s = requests.session() |
