403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/pip/_vendor/urllib3/util/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/pip/_vendor/urllib3/util/__pycache__/connection.cpython-312.pyc
�

�k�f%���ddlmZddlZddlmZddlmZddlmZddl	m
Z
mZd	�Zejddfd
�Zd�Zd�Zd
�Zed�Zy)�)�absolute_importN�)�_appengine_environ)�LocationParseError)�six�)�NoWayToWaitForSocketError�
wait_for_readc�f�t|dd�}|dury|�y	t|d��S#t$rYywxYw)a$
    Returns True if the connection is dropped and should be closed.

    :param conn:
        :class:`http.client.HTTPConnection` object.

    Note: For platforms like AppEngine, this will always return ``False`` to
    let the platform handle connection recycling transparently for us.
    �sockFTg)�timeout)�getattrr
r	)�connrs  �EC:\Python312\Lib\site-packages\pip/_vendor/urllib3/util/connection.py�is_connection_droppedrsH���4���'�D��u�}���|����T�3�/�/��$����s�$�	0�0c���|\}}|jd�r|jd�}d}t�}	|jd�tj|||tj�D]z}|\}	}
}}}
d}	tj|	|
|�}t||�|tjur|j|�|r|j|�|j|
�|cS|�|�tj d��#t$r%tjtd|z�d�cYSwxYw#tj $r }|}|�|j#�d}Yd}~��d}~wwxYw)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�idnaz'%s', label empty or too longz!getaddrinfo returns an empty list)�
startswith�strip�allowed_gai_family�encode�UnicodeErrorr�
raise_fromr�socket�getaddrinfo�SOCK_STREAM�_set_socket_options�_GLOBAL_DEFAULT_TIMEOUT�
settimeout�bind�connect�error�close)�addressr
�source_address�socket_options�host�port�err�family�res�af�socktype�proto�	canonname�sar�es                r�create_connectionr3%s^��$�J�D�$����s���z�z�$���
�C�
 �
!�F�
����F���!�!�$��f�f�6H�6H�I���-0�*��H�e�Y����	��=�=��X�u�5�D�
 ��n�5��f�<�<�<�����(���	�	�.�)��L�L����K��,���	�
�,�,�:�
;�;��=�
��~�~��?�$�F�G��
�	
�
��*�|�|�	��C����
�
������		�s*�D�:A+D3�+D0�/D0�3E&�E!�!E&c�6�|�y|D]}|j|��y)N)�
setsockopt)r�options�opts   rrrds'���������������c�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 rrrls ��
�^�^�F���!�!���Mr8c��d}d}tj�rytjr9	tjtj�}|j|df�d}|r|j�|S#t$rY�wxYw)z4Returns True if the system can bind an IPv6 address.NFrT)r�is_appengine_sandboxr�has_ipv6�AF_INET6r!�	Exceptionr$)r(rr?s   r�	_has_ipv6rBwsw���D��H��.�.�0��
���	��=�=����1�D��I�I�t�Q�i� ��H���
�
���O���	��	�s�8A7�7	B�Bz::1)�
__future__rr�contribr�
exceptionsr�packagesr�waitr	r
rrr3rrrBr;�r8r�<module>rIsN��&�
�(�+��:��8
�*�*���	<<�~���<�U��r8

Youez - 2016 - github.com/yon3zu
LinuXploit