$27 GRAYBYTE WORDPRESS FILE MANAGER $22

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.217.79
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/python3.8/site-packages/pip/_vendor/urllib3/util/__pycache__/

HOME
Current File : /lib/python3.8/site-packages/pip/_vendor/urllib3/util/__pycache__//connection.cpython-38.pyc
U

��.e�@snddlmZddlZddlmZmZddlmZdd�Zej	ddfd	d
�Z
dd�Zd
d�Zdd�Z
e
d�ZdS)�)�absolute_importN�)�NoWayToWaitForSocketError�
wait_for_read�)�_appengine_environcCsNt|dd�}|dkrdS|dkr$dSzt|dd�WStk
rHYdSXdS)a 
    Returns True if the connection is dropped and should be closed.

    :param conn:
        :class:`httplib.HTTPConnection` object.

    Note: For platforms like AppEngine, this will always return ``False`` to
    let the platform handle connection recycling transparently for us.
    �sockFNTg)�timeout)�getattrrr)Zconnr�r�G/usr/lib/python3.8/site-packages/pip/_vendor/urllib3/util/connection.py�is_connection_droppeds
r
cCs�|\}}|�d�r|�d�}d}t�}t�|||tj�D]�}|\}	}
}}}
d}zNt�|	|
|�}t||�|tjk	r||�|�|r�|�	|�|�
|
�|WStjk
r�}z|}|dk	r�|��d}W5d}~XYq8Xq8|dk	r�|�t�d��dS)adConnect to *address* and return the socket object.

    Convenience function.  Connect to *address* (a 2-tuple ``(host,
    port)``) and return the socket object.  Passing the optional
    *timeout* parameter will set the timeout on the socket instance
    before attempting to connect.  If no *timeout* is supplied, the
    global default timeout setting returned by :func:`getdefaulttimeout`
    is used.  If *source_address* is set it must be a tuple of (host, port)
    for the socket to bind as a source address before making the connection.
    An host of '' or port 0 tells the OS to use the default.
    �[z[]Nz!getaddrinfo returns an empty list)
�
startswith�strip�allowed_gai_family�socketZgetaddrinfoZSOCK_STREAM�_set_socket_options�_GLOBAL_DEFAULT_TIMEOUTZ
settimeout�bindZconnect�error�close)Zaddressr	Zsource_addressZsocket_options�hostZport�err�family�resZafZsocktype�protoZ	canonnameZsar�errr�create_connection!s2







rcCs$|dkrdS|D]}|j|�qdS)N)Z
setsockopt)rZoptions�optrrrrYsrcCstj}trtj}|S)z�This function is designed to work in the context of
    getaddrinfo, where family=socket.AF_UNSPEC is the default and
    will perform a DNS search for both IPv6 and IPv4 records.)rZAF_INET�HAS_IPV6Z	AF_UNSPEC)rrrrrasrcCsbd}d}t��rdStjrRz"t�tj�}|�|df�d}Wntk
rPYnX|r^|��|S)z6 Returns True if the system can bind an IPv6 address. NFrT)rZis_appengine_sandboxr�has_ipv6ZAF_INET6r�	Exceptionr)rrr!rrr�	_has_ipv6lsr#z::1)Z
__future__rr�waitrrZcontribrr
rrrrr#r rrrr�<module>s�
8


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Mar 2024 10.19 AM
root / root
0755
__init__.cpython-38.opt-1.pyc
0.96 KB
17 Oct 2023 6.30 PM
root / root
0644
__init__.cpython-38.pyc
0.96 KB
17 Oct 2023 6.30 PM
root / root
0644
connection.cpython-38.opt-1.pyc
3.082 KB
17 Oct 2023 6.30 PM
root / root
0644
connection.cpython-38.pyc
3.082 KB
17 Oct 2023 6.30 PM
root / root
0644
queue.cpython-38.opt-1.pyc
1.004 KB
17 Oct 2023 6.30 PM
root / root
0644
queue.cpython-38.pyc
1.004 KB
17 Oct 2023 6.30 PM
root / root
0644
request.cpython-38.opt-1.pyc
3.244 KB
17 Oct 2023 6.30 PM
root / root
0644
request.cpython-38.pyc
3.244 KB
17 Oct 2023 6.30 PM
root / root
0644
response.cpython-38.opt-1.pyc
1.903 KB
17 Oct 2023 6.30 PM
root / root
0644
response.cpython-38.pyc
1.903 KB
17 Oct 2023 6.30 PM
root / root
0644
retry.cpython-38.opt-1.pyc
12.642 KB
17 Oct 2023 6.30 PM
root / root
0644
retry.cpython-38.pyc
12.642 KB
17 Oct 2023 6.30 PM
root / root
0644
ssl_.cpython-38.opt-1.pyc
9.591 KB
17 Oct 2023 6.30 PM
root / root
0644
ssl_.cpython-38.pyc
9.591 KB
17 Oct 2023 6.30 PM
root / root
0644
timeout.cpython-38.opt-1.pyc
8.636 KB
17 Oct 2023 6.30 PM
root / root
0644
timeout.cpython-38.pyc
8.636 KB
17 Oct 2023 6.30 PM
root / root
0644
url.cpython-38.opt-1.pyc
10.479 KB
17 Oct 2023 6.30 PM
root / root
0644
url.cpython-38.pyc
10.479 KB
17 Oct 2023 6.30 PM
root / root
0644
wait.cpython-38.opt-1.pyc
3.005 KB
17 Oct 2023 6.30 PM
root / root
0644
wait.cpython-38.pyc
3.005 KB
17 Oct 2023 6.30 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF