Skip to content

Commit

Permalink
Fix issue aio-libs#4190
Browse files Browse the repository at this point in the history
  • Loading branch information
polcak committed Oct 16, 2019
1 parent 6236536 commit a7bb2d7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions docs/client_quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,10 @@ Timeouts

Timeout settings are stored in :class:`ClientTimeout` data structure.

By default *aiohttp* uses a *total* 5min timeout, it means that the
By default *aiohttp* uses a *total* 300 seconds (5min) timeout, it means that the
whole operation should finish in 5 minutes.

The value could be overridden by *timeout* parameter for the session::
The value could be overridden by *timeout* parameter for the session (specified in seconds)::

timeout = aiohttp.ClientTimeout(total=60)
async with aiohttp.ClientSession(timeout=timeout) as session:
Expand All @@ -411,24 +411,24 @@ Supported :class:`ClientTimeout` fields are:

``total``

The whole operation time including connection
The maximal number of seconds for the whole operation including connection
establishment, request sending and response reading.

``connect``

The time
consists connection establishment for a new connection or
waiting for a free connection from a pool if pool connection
The maximal number of seconds for
connection establishment of a new connection or
for waiting for a free connection from a pool if pool connection
limits are exceeded.

``sock_connect``

A timeout for connecting to a peer for a new connection, not
The maximal number of seconds for connecting to a peer for a new connection, not
given from a pool.

``sock_read``

The maximum allowed timeout for period between reading a new
The maximal number of seconds allowed for period between reading a new
data portion from a peer.

All fields are floats, ``None`` or ``0`` disables a particular timeout check, see the
Expand Down
14 changes: 7 additions & 7 deletions docs/client_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ The client session supports the context manager protocol for self closing.

Async callback support is added.

:param timeout: a :class:`ClientTimeout` settings structure, 5min
:param timeout: a :class:`ClientTimeout` settings structure, 300 seconds (5min)
total timeout by default.

.. versionadded:: 3.3
Expand Down Expand Up @@ -347,7 +347,7 @@ The client session supports the context manager protocol for self closing.
:class:`float` is still supported for sake of backward
compatibility.

If :class:`float` is passed it is a *total* timeout.
If :class:`float` is passed it is a *total* timeout (in seconds).

:param ssl: SSL validation mode. ``None`` for default SSL check
(:func:`ssl.create_default_context` is used),
Expand Down Expand Up @@ -683,7 +683,7 @@ certification chaining.
does not have Content-Length header.
``True`` by default (optional).

:param timeout: a :class:`ClientTimeout` settings structure, 5min
:param timeout: a :class:`ClientTimeout` settings structure, 300 seconds (5min)
total timeout by default.


Expand Down Expand Up @@ -1422,13 +1422,13 @@ ClientTimeout

.. attribute:: total

Total timeout for the whole request.
Maximal number of seconds for the whole request.

:class:`float`, ``None`` by default.

.. attribute:: connect

Total timeout for acquiring a connection from pool. The time
Maximal number of seconds for acquiring a connection from pool. The time
consists connection establishment for a new connection or
waiting for a free connection from a pool if pool connection
limits are exceeded.
Expand All @@ -1440,14 +1440,14 @@ ClientTimeout

.. attribute:: sock_connect

A timeout for connecting to a peer for a new connection, not
Maximal number of seconds for connecting to a peer for a new connection, not
given from a pool. See also :attr:`connect`.

:class:`float`, ``None`` by default.

.. attribute:: sock_read

A timeout for reading a portion of data from a peer.
Maximal number of seconds for reading a portion of data from a peer.

:class:`float`, ``None`` by default.

Expand Down

0 comments on commit a7bb2d7

Please sign in to comment.