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

Function _set_nodelay

asyncpg/connect_utils.py:1362–1364  ·  view source on GitHub ↗
(sock)

Source from the content-addressed store, hash-verified

1360
1361
1362def _set_nodelay(sock):
1363 if not hasattr(socket, 'AF_UNIX') or sock.family != socket.AF_UNIX:
1364 sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
1365
1366
1367def _create_future(loop):

Callers 2

_create_ssl_connectionFunction · 0.85
_cancelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected