hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Ë
ê^i\ãóò—ddlmZddlZddlZddlmZddlmZmZe    e
e e eje e ffZejrddlmZdd„Zeddf                                    dd    „Z                        dd
„Zdd „Zdd „Zed «Zy)é)Ú annotationsNé)ÚLocationParseErroré)Ú_DEFAULT_TIMEOUTÚ _TYPE_TIMEOUT)ÚBaseHTTPConnectioncó—|j S)z
    Returns True if the connection is dropped and should be closed.
    :param conn: :class:`urllib3.connection.HTTPConnection` object.
    )Ú is_connected)Úconns õjH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\urllib3/util/connection.pyÚis_connection_droppedrs€ð
× Ñ Ð  Ð ócó~—|\}}|jd«r|jd«}d}t«}    |jd«t j|||t j«D]r}|\}    }
} } } d}    t j |    |
| «}t||«|tur|j|«|r|j|«|j| «d}|cS|    |‚td«‚#t$rt d|›d«d‚wxYw#t$r}|}||j«Yd}~ŒÄd}~wwxYw#d}wxYw)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Úidnaú'z', label empty or too longz!getaddrinfo returns an empty list)Ú
startswithÚstripÚallowed_gai_familyÚencodeÚ UnicodeErrorrÚsocketÚ getaddrinfoÚ SOCK_STREAMÚ_set_socket_optionsrÚ
settimeoutÚbindÚconnectÚOSErrorÚclose)ÚaddressÚtimeoutÚsource_addressÚsocket_optionsÚhostÚportÚerrÚfamilyÚresÚafÚsocktypeÚprotoÚ    canonnameÚsaÚsockÚ_s                r Úcreate_connectionr2sZ€ð$J€Dˆ$Ø ‡sÔØz‰z˜$ÓˆØ
€Cô
 Ó !€FðQØ  ‰ FÔô×!Ñ! $¨¨f´f×6HÑ6HÓIòˆØ-0Ñ*ˆˆHe˜Y¨Øˆð    Ü—=‘=  X¨uÓ5ˆDô    nÔ 5àÔ.Ñ.Ø—‘ Ô(ÙØ—    ‘    ˜.Ô)Ø L‰L˜Ô àˆCØŠKð!ð. €ð    ØˆIô
Ð9Ó:Ð:øôC òQÜ  1 T FÐ*DÐ!EÓFÈDÐPðQûô*ò    ØˆCØÐØ—
‘
” ÿøð    ûð‰Cús0µC1Á:A#DÃ$D8Ã1D Ä    D5ÄD0Ä0D5Ä8D<có6—|€y|D]}|j|ŽŒy)N)Ú
setsockopt)r0ÚoptionsÚopts   r rr]s)€ð€ØàòˆØˆ‰˜Òñrcó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 r rrgs €ô
^‰^€FÝÜ×!Ñ!ˆØ €Mrcóâ—d}d}tjr9    tjtj«}|j|df«d}|r|j «|S#t$rYŒwxYw)z4Returns True if the system can bind an IPv6 address.NFrT)rÚhas_ipv6ÚAF_INET6rÚ    Exceptionr!)r&r0r<s   r Ú    _has_ipv6r?rsf€à €DØ€Hä ‡‚ð     Ü—=‘=¤§¡Ó1ˆDØ I‰It˜QiÔ  ØˆHñ Ø 
‰
Œ Ø €Oøô ò    Ù ð    ús–8A"Á"    A.Á-A.z::1)r r    ÚreturnÚbool)
r"ztuple[str, int]r#rr$ztuple[str, int] | Noner%ú_TYPE_SOCKET_OPTIONS | Noner@ú socket.socket)r0rCr5rBr@ÚNone)r@zsocket.AddressFamily)r&Ústrr@rA)Ú
__future__rrÚtypingÚ
exceptionsrr#rrÚlistÚtupleÚintÚUnionÚbytesÚ_TYPE_SOCKET_OPTIONSÚ TYPE_CHECKINGÚ_base_connectionr    rr2rrr?r9©rr ú<module>rRs»ðÝ"ã Û å+ß4à˜E # s¨F¯L©L¸¸e¸Ñ,DÐ"DÑEÑFÐà    ×ÒÝ5ó!ð.Ø-1Ø26ð    ?;Ø ð?;à ð?;ð+ð?;ð0ð    ?;ð
ó ?;ðDØ
ðØ"=ðà    óóóñ. UÓ r