Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/urllib3/util/__pycache__/connection.cpython-312.pyc

38 lines
4.6 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
f<> i\<00><01><><00>ddlmZddlZddlZddlmZddlmZmZe e
e e eje e ffZejrddlmZdd<08>Zeddf dd <09>Z dd
<EFBFBD>Zdd <0B>Zdd <0C>Zed <0A>Zy)<13>)<01> annotationsN<73>)<01>LocationParseError<6F>)<02>_DEFAULT_TIMEOUT<55> _TYPE_TIMEOUT)<01>BaseHTTPConnectionc<01><00>|j S)z<>
Returns True if the connection is dropped and should be closed.
:param conn: :class:`urllib3.connection.HTTPConnection` object.
)<01> is_connected)<01>conns <20>FE:\Project\pygoedge\.venv\Lib\site-packages\urllib3/util/connection.py<70>is_connection_droppedrs<00><00>
<14> <20> <20> <20> <20>c<01>~<00>|\}}|jd<01>r|jd<02>}d}t<00>} |jd<04>t j|||t j<00>D]r}|\} }
} } } d} t j | |
| <0B>}t||<03>|tur|j|<01>|r|j|<02>|j| <0A>d}|cS|<06> |<06>td<07><00>#t$rt d|<04>d<06><03>d<03>wxYw#t$r}|}|<0E>|j<00>Yd}~<0F><>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.
<20>[z[]N<>idna<6E>'z', label empty or too longz!getaddrinfo returns an empty list)<10>
startswith<EFBFBD>strip<69>allowed_gai_family<6C>encode<64> UnicodeErrorr<00>socket<65> getaddrinfo<66> SOCK_STREAM<41>_set_socket_optionsr<00>
settimeout<EFBFBD>bind<6E>connect<63>OSError<6F>close)<10>address<73>timeout<75>source_address<73>socket_options<6E>host<73>port<72>err<72>family<6C>res<65>af<61>socktype<70>proto<74> canonname<6D>sa<73>sock<63>_s r <00>create_connectionr2sV<00><00>$<19>J<EFBFBD>D<EFBFBD>$<24> <0B><EFBFBD><EFBFBD>s<EFBFBD><1B><13>z<EFBFBD>z<EFBFBD>$<24><1F><04>
<0E>C<EFBFBD>
 <20> !<21>F<EFBFBD>Q<01> <0C> <0B> <0B>F<EFBFBD><1B><16>!<21>!<21>$<24><04>f<EFBFBD>f<EFBFBD>6H<36>6H<36>I<><03>-0<>*<2A><02>H<EFBFBD>e<EFBFBD>Y<EFBFBD><02><13><04> <1D><19>=<3D>=<3D><12>X<EFBFBD>u<EFBFBD>5<>D<EFBFBD> <20><04>n<EFBFBD> 5<><16>.<2E>.<2E><14><0F><0F><07>(<28><1D><14> <09> <09>.<2E>)<29> <10>L<EFBFBD>L<EFBFBD><12> <1C><16>C<EFBFBD><17>K<EFBFBD>!J<01>. <0B><EFBFBD> <17><15>I<EFBFBD>
<16>9<>:<3A>:<3A><>C <18>Q<01> <20>1<EFBFBD>T<EFBFBD>F<EFBFBD>*D<>!E<>F<>D<EFBFBD>P<>Q<01><>*<17> <1D><13>C<EFBFBD><13><1F><14>
<EFBFBD>
<EFBFBD> <0C><><EFBFBD> <1D><><17>C<EFBFBD>s0<00>C1<00>:A#D<02>$D8<00>1D <03> D5<05>D0<05>0D5<05>8D<c<01>6<00>|<01>y|D]}|j|<02><00>y)N)<01>
setsockopt)r0<00>options<6E>opts r rr]s$<00><00><0F><EFBFBD><0E><16><03><17><04><0F><0F><13><1D>rc<01>R<00>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<00>AF_INET<45>HAS_IPV6<56> AF_UNSPEC)r)s r rrgs <00><00>
<14>^<5E>^<5E>F<EFBFBD><0F><17>!<21>!<21><06> <11>Mrc<01><><00>d}d}tjr9 tjtj<00>}|j|df<02>d}|r|j <00>|S#t$rY<00>wxYw)z4Returns True if the system can bind an IPv6 address.NFrT)r<00>has_ipv6<76>AF_INET6r<00> Exceptionr!)r&r0r<s r <00> _has_ipv6r?rsf<00><00> <0F>D<EFBFBD><14>H<EFBFBD> <0A><EFBFBD><EFBFBD>  <11><19>=<3D>=<3D><16><1F><1F>1<>D<EFBFBD> <10>I<EFBFBD>I<EFBFBD>t<EFBFBD>Q<EFBFBD>i<EFBFBD> <20><1B>H<EFBFBD> <0C> <0C>
<EFBFBD>
<EFBFBD> <0C> <13>O<EFBFBD><4F> <19> <11> <10> <11>s<00>8A"<00>" A.<03>-A.z::1)r r <00>return<72>bool)
r"ztuple[str, int]r#rr$ztuple[str, int] | Noner%<00>_TYPE_SOCKET_OPTIONS | Noner@<00> socket.socket)r0rCr5rBr@<00>None)r@zsocket.AddressFamily)r&<00>strr@rA)<18>
__future__rr<00>typing<6E>
exceptionsrr#rr<00>list<73>tuple<6C>int<6E>Union<6F>bytes<65>_TYPE_SOCKET_OPTIONS<4E> TYPE_CHECKING<4E>_base_connectionr rr2rrr?r9<00>rr <00><module>rRs<><00><01>"<22> <0A> <0A>+<2B>4<><1B>E<EFBFBD>#<23>s<EFBFBD>F<EFBFBD>L<EFBFBD>L<EFBFBD><13>e<EFBFBD><1A>,D<>"D<>E<>F<><14> <09><17><17>5<>!<21>.<2E>-1<>26<32> ?;<3B> <1C>?;<3B> <1A>?;<3B>+<2B>?;<3B>0<> ?;<3B>
<13> ?;<3B>D<1E>
<17><1E>"=<3D><1E> <09><1E><12><14>. <15>U<EFBFBD> <1B>r