MCPcopy Create free account
hub / github.com/rthalley/dnspython / _connect

Function _connect

dns/query.py:1193–1201  ·  view source on GitHub ↗
(s, address, expiration)

Source from the content-addressed store, hash-verified

1191
1192
1193def _connect(s, address, expiration):
1194 err = s.connect_ex(address)
1195 if err == 0:
1196 return
1197 if err in (errno.EINPROGRESS, errno.EWOULDBLOCK, errno.EALREADY):
1198 _wait_for_writable(s, expiration)
1199 err = s.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
1200 if err != 0:
1201 raise OSError(err, os.strerror(err))
1202
1203
1204def tcp(

Callers 5

connect_tcpMethod · 0.85
tcpFunction · 0.85
tlsFunction · 0.85
xfrFunction · 0.85
inbound_xfrFunction · 0.85

Calls 1

_wait_for_writableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…