diff options
| author | Seth Michael Larson <sethmichaellarson@gmail.com> | 2019-06-05 08:43:06 -0500 |
|---|---|---|
| committer | Seth Michael Larson <sethmichaellarson@gmail.com> | 2019-06-05 08:43:06 -0500 |
| commit | cce19dcd3c29e93e490ef526dc87aad2255b9c99 (patch) | |
| tree | 4707723b7f9625b48f94afc0184af7c1c4fc92c9 /src/urllib3/util/timeout.py | |
| parent | 02fd90adbb388de72e4fea0826f33dcd35298a6f (diff) | |
| parent | 728d9244665ef5b03103cb74d7b409ebe4f23b43 (diff) | |
| download | urllib3-delete-makefile.tar.gz | |
Merge branch 'master' of ssh://github.com/urllib3/urllib3 into delete-makefiledelete-makefile
Diffstat (limited to 'src/urllib3/util/timeout.py')
| -rw-r--r-- | src/urllib3/util/timeout.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/urllib3/util/timeout.py b/src/urllib3/util/timeout.py index 6623bbad..c1dc1e97 100644 --- a/src/urllib3/util/timeout.py +++ b/src/urllib3/util/timeout.py @@ -46,19 +46,20 @@ class Timeout(object): :type total: integer, float, or None :param connect: - The maximum amount of time to wait for a connection attempt to a server - to succeed. Omitting the parameter will default the connect timeout to - the system default, probably `the global default timeout in socket.py + The maximum amount of time (in seconds) to wait for a connection + attempt to a server to succeed. Omitting the parameter will default the + connect timeout to the system default, probably `the global default + timeout in socket.py <http://hg.python.org/cpython/file/603b4d593758/Lib/socket.py#l535>`_. None will set an infinite timeout for connection attempts. :type connect: integer, float, or None :param read: - The maximum amount of time to wait between consecutive - read operations for a response from the server. Omitting - the parameter will default the read timeout to the system - default, probably `the global default timeout in socket.py + The maximum amount of time (in seconds) to wait between consecutive + read operations for a response from the server. Omitting the parameter + will default the read timeout to the system default, probably `the + global default timeout in socket.py <http://hg.python.org/cpython/file/603b4d593758/Lib/socket.py#l535>`_. None will set an infinite timeout. @@ -195,7 +196,7 @@ class Timeout(object): def get_connect_duration(self): """ Gets the time elapsed since the call to :meth:`start_connect`. - :return: Elapsed time. + :return: Elapsed time in seconds. :rtype: float :raises urllib3.exceptions.TimeoutStateError: if you attempt to get duration for a timer that hasn't been started. |
