[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.15.236.219: ~ $


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)�connr�pZfnoZev�r�/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�stripr�getaddrinfo�SOCK_STREAM�_set_socket_options�_GLOBAL_DEFAULT_TIMEOUT�
settimeout�bind�connectr	�close)�address�timeout�source_addressZsocket_options�host�port�err�res�af�socktype�proto�	canonname�sar�errr�create_connection1s0"




r)cCs2|dkrdSx|D]}|j|�qWdS)N)�
setsockopt)rZoptions�optrrrr`s
r)Z
__future__rrrrr�ImportErrorrrr)rrrrr�<module>s

$.

Filemanager

Name Type Size Permission Actions
__init__.cpython-35.opt-1.pyc File 1.07 KB 0644
__init__.cpython-35.pyc File 1.07 KB 0644
connection.cpython-35.opt-1.pyc File 2.6 KB 0644
connection.cpython-35.pyc File 2.6 KB 0644
request.cpython-35.opt-1.pyc File 1.92 KB 0644
request.cpython-35.pyc File 1.92 KB 0644
response.cpython-35.opt-1.pyc File 1.8 KB 0644
response.cpython-35.pyc File 1.8 KB 0644
retry.cpython-35.opt-1.pyc File 9 KB 0644
retry.cpython-35.pyc File 9 KB 0644
ssl_.cpython-35.opt-1.pyc File 8.95 KB 0644
ssl_.cpython-35.pyc File 8.95 KB 0644
timeout.cpython-35.opt-1.pyc File 8.74 KB 0644
timeout.cpython-35.pyc File 8.74 KB 0644
url.cpython-35.opt-1.pyc File 5.08 KB 0644
url.cpython-35.pyc File 5.08 KB 0644