MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _get_socket

Function _get_socket

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

Source from the content-addressed store, hash-verified

1351
1352
1353def _get_socket(transport):
1354 sock = transport.get_extra_info('socket')
1355 if sock is None:
1356 # Shouldn't happen with any asyncio-complaint event loop.
1357 raise ConnectionError(
1358 'could not get the socket for transport {!r}'.format(transport))
1359 return sock
1360
1361
1362def _set_nodelay(sock):

Callers 2

_create_ssl_connectionFunction · 0.85
_cancelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected