Skip to content
Myr

Update documentation about max_retries to reflect code

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

authored by Kevin Burke · committed by Kevin Burke · parent f2f3bde · Browse files · 2 files+4 added−4 removed
This commit

State

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

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:requests/adapters.py+4 added-2 removed
58 unmodified lines
5960 :param pool_connections: The number of urllib3 connection pools to cache.61 :param pool_maxsize: The maximum number of connections to save in the pool.62 :param int max_retries: The maximum number of retries each connection63 should attempt. Note, this applies only to failed connections and64 timeouts, never to requests where the server returns a response.63 should attempt. Note, this applies only to failed DNS lookups, socket64 connections and connection timeouts, never to requests where data has65 made it to the server. By default, Requests does not retry failed66 connections.67 :param pool_block: Whether the connection pool should block for connections.6869 Usage::70
358 unmodified lines
modified:HISTORY.rst-2 removed
47 unmodified lines
4849**Behavioral Changes**5051- ``Connection: keep-alive`` header is now sent automatically.52- Read timeout errors will no longer be retried when you create a Session with53 ``max_retries`` greater than zero.5253**Improvements**5455- Support for connect timeouts! Timeout now accepts a tuple (connect, read) which is used to set individual connect and read timeouts.
801 unmodified lines