connection
allowed_gai_family()
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.
Source code in client/ayon_fusion/vendor/urllib3/util/connection.py
109 110 111 112 113 114 115 116 117 |
|
create_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, source_address=None, socket_options=None)
Connect 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.
Source code in client/ayon_fusion/vendor/urllib3/util/connection.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
is_connection_dropped(conn)
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.
Source code in client/ayon_fusion/vendor/urllib3/util/connection.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|