$60 GRAYBYTE WORDPRESS FILE MANAGER $99

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

/opt/hc_python/lib/python3.12/site-packages/urllib3/util/__pycache__/

HOME
Current File : /opt/hc_python/lib/python3.12/site-packages/urllib3/util/__pycache__//connection.cpython-312.pyc
�

I��g\����ddlmZddlZddlZddlmZddlmZmZe	e
eeejee
ffZejrddlmZdd�Zeddf									dd	�Z						dd
�Zdd�Zdd�Zed
�Zy)�)�annotationsN�)�LocationParseError�)�_DEFAULT_TIMEOUT�
_TYPE_TIMEOUT)�BaseHTTPConnectionc��|jS)z�
    Returns True if the connection is dropped and should be closed.
    :param conn: :class:`urllib3.connection.HTTPConnection` object.
    )�is_connected)�conns �F/opt/hc_python/lib/python3.12/site-packages/urllib3/util/connection.py�is_connection_droppedrs��
� � � � �c�~�|\}}|jd�r|jd�}d}t�}	|jd�t
j|||tj�D]r}|\}	}
}}}
d}	t
j|	|
|�}t||�|tur|j|�|r|j|�|j|
�d}|cS|�	|�td��#t$rtd|�d��d�wxYw#t$r}|}|�|j�Yd}~��d}~wwxYw#d}wxYw)akConnect 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:`socket.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[]N�idna�'z', label empty or too longz!getaddrinfo returns an empty list)�
startswith�strip�allowed_gai_family�encode�UnicodeErrorr�socket�getaddrinfo�SOCK_STREAM�_set_socket_optionsr�
settimeout�bind�connect�OSError�close)�address�timeout�source_address�socket_options�host�port�err�family�res�af�socktype�proto�	canonname�sa�sock�_s                r
�create_connectionr2sV��$�J�D�$����s���z�z�$���
�C�
 �
!�F�Q����F���!�!�$��f�f�6H�6H�I��-0�*��H�e�Y����	��=�=��X�u�5�D�
 ��n�5��.�.�����(���	�	�.�)��L�L����C��K�!J�.��	��I�
�9�:�:��C�Q� �1�T�F�*D�!E�F�D�P�Q��*�	��C����
�
����	���C�s0�C1�:A#D�$D8�1D�	D5�D0�0D5�8D<c�6�|�y|D]}|j|��y)N)�
setsockopt)r0�options�opts   r
rr]s$�������������rc�R�tj}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.)r�AF_INET�HAS_IPV6�	AF_UNSPEC)r)s r
rrgs ��
�^�^�F���!�!���Mrc���d}d}tjr9	tjtj�}|j|df�d}|r|j�|S#t$rY�wxYw)z4Returns True if the system can bind an IPv6 address.NFrT)r�has_ipv6�AF_INET6r�	Exceptionr!)r&r0r<s   r
�	_has_ipv6r?rsf���D��H�
���	��=�=����1�D��I�I�t�Q�i� ��H���
�
���O���	��	�s�8A"�"	A.�-A.z::1)rr	�return�bool)
r"ztuple[str, int]r#rr$ztuple[str, int] | Noner%�_TYPE_SOCKET_OPTIONS | Noner@�
socket.socket)r0rCr5rBr@�None)r@zsocket.AddressFamily)r&�strr@rA)�
__future__rr�typing�
exceptionsrr#rr�list�tuple�int�Union�bytes�_TYPE_SOCKET_OPTIONS�
TYPE_CHECKING�_base_connectionr	rr2rrr?r9�rr
�<module>rRs���"�
�
�+�4��E�#�s�F�L�L��e��,D�"D�E�F��	���5�!�.�-1�26�	?;�
�?;�
�?;�+�?;�0�	?;�
�?;�D�
��"=��	����.�U��r


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2025 8.03 AM
root / root
0755
__init__.cpython-312.pyc
0.958 KB
4 Apr 2025 8.03 AM
root / root
0644
connection.cpython-312.pyc
4.553 KB
4 Apr 2025 8.03 AM
root / root
0644
proxy.cpython-312.pyc
1.165 KB
4 Apr 2025 8.03 AM
root / root
0644
request.cpython-312.pyc
7.957 KB
4 Apr 2025 8.03 AM
root / root
0644
response.cpython-312.pyc
2.785 KB
4 Apr 2025 8.03 AM
root / root
0644
retry.cpython-312.pyc
19.792 KB
4 Apr 2025 8.03 AM
root / root
0644
ssl_.cpython-312.pyc
16.149 KB
4 Apr 2025 8.03 AM
root / root
0644
ssl_match_hostname.cpython-312.pyc
5.384 KB
4 Apr 2025 8.03 AM
root / root
0644
ssltransport.cpython-312.pyc
12.97 KB
4 Apr 2025 8.03 AM
root / root
0644
timeout.cpython-312.pyc
11.392 KB
4 Apr 2025 8.03 AM
root / root
0644
url.cpython-312.pyc
15.816 KB
4 Apr 2025 8.03 AM
root / root
0644
util.cpython-312.pyc
1.924 KB
4 Apr 2025 8.03 AM
root / root
0644
wait.cpython-312.pyc
3.336 KB
4 Apr 2025 8.03 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF