Current Path: > > usr > lib > python2.7 > site-packages > pip > _vendor > > urllib3 > > util
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.py | File | 1044 bytes | April 21 2022 18:08:21. | |
__init__.pyc | File | 1277 bytes | April 21 2022 18:08:35. | |
__init__.pyo | File | 1277 bytes | April 21 2022 18:08:35. | |
connection.py | File | 4237 bytes | April 21 2022 18:08:21. | |
connection.pyc | File | 3871 bytes | April 21 2022 18:08:35. | |
connection.pyo | File | 3871 bytes | April 21 2022 18:08:35. | |
request.py | File | 3705 bytes | April 21 2022 18:08:21. | |
request.pyc | File | 3757 bytes | April 21 2022 18:08:35. | |
request.pyo | File | 3757 bytes | April 21 2022 18:08:35. | |
response.py | File | 2343 bytes | April 21 2022 18:08:21. | |
response.pyc | File | 2297 bytes | April 21 2022 18:08:35. | |
response.pyo | File | 2297 bytes | April 21 2022 18:08:35. | |
retry.py | File | 15104 bytes | April 21 2022 18:08:21. | |
retry.pyc | File | 14728 bytes | April 21 2022 18:08:35. | |
retry.pyo | File | 14728 bytes | April 21 2022 18:08:35. | |
selectors.py | File | 21147 bytes | April 21 2022 18:08:21. | |
selectors.pyc | File | 20985 bytes | April 21 2022 18:08:35. | |
selectors.pyo | File | 20985 bytes | April 21 2022 18:08:35. | |
ssl_.py | File | 12214 bytes | April 21 2022 18:08:21. | |
ssl_.pyc | File | 10605 bytes | April 21 2022 18:08:35. | |
ssl_.pyo | File | 10605 bytes | April 21 2022 18:08:35. | |
timeout.py | File | 9757 bytes | April 21 2022 18:08:21. | |
timeout.pyc | File | 9716 bytes | April 21 2022 18:08:35. | |
timeout.pyo | File | 9716 bytes | April 21 2022 18:08:35. | |
url.py | File | 6798 bytes | April 21 2022 18:08:21. | |
url.pyc | File | 6773 bytes | April 21 2022 18:08:35. | |
url.pyo | File | 6773 bytes | April 21 2022 18:08:35. | |
wait.py | File | 1451 bytes | April 21 2022 18:08:21. | |
wait.pyc | File | 1842 bytes | April 21 2022 18:08:35. | |
wait.pyo | File | 1842 bytes | April 21 2022 18:08:35. |
� ��abc @@ st d d l m Z d d l m Z d d l Z d d l m Z e � Z e e d e j � Z d e f d � � YZ d S( i ( t absolute_import( t _GLOBAL_DEFAULT_TIMEOUTNi ( t TimeoutStateErrort monotonict Timeoutc B@ s� e Z d Z e Z d e e d � Z d � Z e d � � Z e d � � Z d � Z d � Z d � Z e d � � Z e d � � Z RS( s� Timeout configuration. Timeouts can be defined as a default for a pool:: timeout = Timeout(connect=2.0, read=7.0) http = PoolManager(timeout=timeout) response = http.request('GET', 'http://example.com/') Or per-request (which overrides the default for the pool):: response = http.request('GET', 'http://example.com/', timeout=Timeout(10)) Timeouts can be disabled by setting all the parameters to ``None``:: no_timeout = Timeout(connect=None, read=None) response = http.request('GET', 'http://example.com/, timeout=no_timeout) :param total: This combines the connect and read timeouts into one; the read timeout will be set to the time leftover from the connect attempt. In the event that both a connect timeout and a total are specified, or a read timeout and a total are specified, the shorter timeout will be applied. Defaults to None. :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 <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 <http://hg.python.org/cpython/file/603b4d593758/Lib/socket.py#l535>`_. None will set an infinite timeout. :type read: integer, float, or None .. note:: Many factors can affect the total amount of time for urllib3 to return an HTTP response. For example, Python's DNS resolver does not obey the timeout specified on the socket. Other factors that can affect total request time include high CPU load, high swap, the program running at a low priority level, or other behaviors. In addition, the read and total timeouts only measure the time between read operations on the socket connecting the client and the server, not the total amount of time for the request to return a complete response. For most requests, the timeout is raised because the server has not sent the first byte in the specified time. This is not always the case; if a server streams one byte every fifteen seconds, a timeout of 20 seconds will not trigger, even though the request will take several minutes to complete. If your goal is to cut off any request after a set amount of wall clock time, consider having a second "watcher" thread to cut off a slow request. c C@ sL | j | d � | _ | j | d � | _ | j | d � | _ d | _ d S( Nt connectt readt total( t _validate_timeoutt _connectt _readR t Nonet _start_connect( t selfR R R ( ( sD /usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/timeout.pyt __init__] s c C@ s&