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

Method testSocketBufferSize

Lib/test/test_socket.py:2583–2587  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2581 pass
2582
2583 def testSocketBufferSize(self):
2584 bufsize = 16384
2585 with socket.socket(socket.PF_RDS, socket.SOCK_SEQPACKET, 0) as s:
2586 s.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, bufsize)
2587 s.setsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF, bufsize)
2588
2589
2590@unittest.skipUnless(HAVE_SOCKET_RDS, 'RDS sockets required for this test.')

Callers

nothing calls this directly

Calls 2

socketMethod · 0.80
setsockoptMethod · 0.45

Tested by

no test coverage detected