MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 13.59.226.183
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.pyc
�
r2Wc@@s�ddlmZddlZyddlmZmZWnEek
r}eZyddlmZWq~ek
ryeZq~XnXd�Zej	ddd�Zd�ZdS(i(tabsolute_importN(tpolltPOLLIN(tselectcC@s�t|dt�}|tkr"tS|dkr2tSts{tsBtSyt|gggd�dSWq{tjk
rwtSXnt�}|j|t	�x3|jd�D]"\}}||j
�kr�tSq�WdS(s 
    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.
    tsockgiN(tgetattrtFalsetNonetTrueRRtsocketterrortregisterRtfileno(tconnRtptfnotev((sY/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.pytis_connection_dropped
s"
	cC@sF|\}}|jd�r-|jd�}nd}x�tj||dtj�D]�}|\}}	}
}}d}
yltj||	|
�}
t|
|�|tjk	r�|
j|�n|r�|
j	|�n|
j
|�|
SWqOtjk
r}|}|
dk	r|
j�d}
qqOXqOW|dk	r3|�ntjd��dS(sdConnect 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.
    t[s[]is!getaddrinfo returns an empty listN(
t
startswithtstripRR	tgetaddrinfotSOCK_STREAMt_set_socket_optionst_GLOBAL_DEFAULT_TIMEOUTt
settimeouttbindtconnectR
tclose(taddressttimeouttsource_addresstsocket_optionsthosttportterrtrestaftsocktypetprotot	canonnametsaRte((sY/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.pytcreate_connection1s0"


	cC@s2|dkrdSx|D]}|j|�qWdS(N(Rt
setsockopt(Rtoptionstopt((sY/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.pyR`s
(
t
__future__RR	RRRtImportErrorRRRRR+R(((sY/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.pyt<module>s

	$.

MMCT - 2023