MCPcopy Index your code
hub / github.com/python/cpython / _set_nodelay

Function _set_nodelay

Lib/asyncio/base_events.py:194–198  ·  view source on GitHub ↗
(sock)

Source from the content-addressed store, hash-verified

192
193if hasattr(socket, 'TCP_NODELAY'):
194 def _set_nodelay(sock):
195 if (sock.family in {socket.AF_INET, socket.AF_INET6} and
196 sock.type == socket.SOCK_STREAM and
197 sock.proto == socket.IPPROTO_TCP):
198 sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
199else:
200 def _set_nodelay(sock):
201 pass

Callers

nothing calls this directly

Calls 1

setsockoptMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…