Add a code comment to the test_send_timeout() test

This commit is contained in:
Michał Kępień 2022-07-04 23:10:59 +02:00
parent 269ecb6f63
commit 8ebc9c76a9

View file

@ -185,6 +185,11 @@ def test_long_axfr(named_port):
assert soa is not None
# This test relies on the maximum socket send buffer size (wmem_max) being set
# to 212992 bytes (the typical default value on Linux systems). Environments
# that use a different value for this setting (for example, FreeBSD defaults to
# 32768 bytes) may need their system-level settings to be tweaked in order for
# this test to pass.
def test_send_timeout(named_port):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.connect(("10.53.0.1", named_port))