MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _get_socket

Function _get_socket

asyncpg/connect_utils.py:1293–1299  ·  view source on GitHub ↗
(transport)

Source from the content-addressed store, hash-verified

1291
1292
1293def _get_socket(transport):
1294 sock = transport.get_extra_info('socket')
1295 if sock is None:
1296 # Shouldn't happen with any asyncio-complaint event loop.
1297 raise ConnectionError(
1298 'could not get the socket for transport {!r}'.format(transport))
1299 return sock
1300
1301
1302def _set_nodelay(sock):

Callers 2

_create_ssl_connectionFunction · 0.85
_cancelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…