Skip to content
Myr

Mention connection pooling in session docs.

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

authored by Lukas Graf · committed by Lukas Graf · parent 75c1776 · Browse files · 1 file+6 added−1 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−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:docs/user/advanced.rst+6 added-1 removed
10 unmodified lines
11---------------1213The Session object allows you to persist certain parameters across14requests. It also persists cookies across all requests made from the15Session instance.15Session instance, and will use ``urllib3``'s `connection pooling`_. So if16you're making several requests to the same host, the underlying TCP17connection will be reused, which can result in a significant performance18increase (see `HTTP persistent connection`_).1920A Session object has all the methods of the main Requests API.2122Let's persist some cookies across requests::
815 unmodified lines
838system.839840For the sake of security we recommend upgrading certifi frequently!841842.. _HTTP persistent connection: https://en.wikipedia.org/wiki/HTTP_persistent_connection843.. _connection pooling: https://urllib3.readthedocs.org/en/latest/pools.html844.. _certifi: http://certifi.io/845.. _Mozilla trust store: https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt