https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/urllib3/util/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/urllib3/util/connection.pyc
�
�J�bc@@s�ddlmZddlZddlmZddlmZddlmZddl	m
Z
mZd	�Zej
ddd
�Zd�Zd�Zd
�Zed�ZdS(i(tabsolute_importNi(t_appengine_environ(tLocationParseError(tsixi(tNoWayToWaitForSocketErrort
wait_for_readcC@s_t|dt�}|tkr"tS|dkr2tSyt|dd�SWntk
rZtSXdS(s$
    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.
    tsockttimeoutgN(tgetattrtFalsetNonetTrueRR(tconnR((s:/tmp/pip-install-spIB81/urllib3/urllib3/util/connection.pytis_connection_droppeds

cC@s�|\}}|jd�r-|jd�}nd}t�}y|jd�Wn(tk
rwtjtd|�d�SXx�t	j
|||t	j�D]�}|\}	}
}}}
d}ylt	j	|	|
|�}t||�|t	j
k	r�|j|�n|r|j|�n|j|
�|SWq�t	jk
r^}|}|dk	r_|j�d}q_q�Xq�W|dk	rx|�nt	jd��dS(skConnect 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.
    t[s[]tidnau'%s', label empty or too longs!getaddrinfo returns an empty listN(t
startswithtstripR
tallowed_gai_familytencodetUnicodeErrorRt
raise_fromRtsockettgetaddrinfotSOCK_STREAMt_set_socket_optionst_GLOBAL_DEFAULT_TIMEOUTt
settimeouttbindtconnectterrortclose(taddressRtsource_addresstsocket_optionsthosttportterrtfamilytrestaftsocktypetprotot	canonnametsaRte((s:/tmp/pip-install-spIB81/urllib3/urllib3/util/connection.pytcreate_connection%s<	
"


	cC@s2|dkrdSx|D]}|j|�qWdS(N(R
t
setsockopt(Rtoptionstopt((s:/tmp/pip-install-spIB81/urllib3/urllib3/util/connection.pyRds
cC@stj}trtj}n|S(s�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.(RtAF_INETtHAS_IPV6t	AF_UNSPEC(R&((s:/tmp/pip-install-spIB81/urllib3/urllib3/util/connection.pyRls	cC@s�d}t}tj�rtStjrky/tjtj�}|j|df�t}Wqkt	k
rgqkXn|r~|j
�n|S(s4Returns True if the system can bind an IPv6 address.iN(R
R	Rtis_appengine_sandboxRthas_ipv6tAF_INET6RRt	ExceptionR(R#RR6((s:/tmp/pip-install-spIB81/urllib3/urllib3/util/connection.pyt	_has_ipv6ws	


s::1(t
__future__RRtcontribRt
exceptionsRtpackagesRtwaitRRR
RR
R.RRR9R3(((s:/tmp/pip-install-spIB81/urllib3/urllib3/util/connection.pyt<module>s	;			

https://t.me/AnonymousX5 - 2025