From 8ebc9c76a9aa00a559ddc6e95dd3cd3c99491917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Mon, 4 Jul 2022 23:10:59 +0200 Subject: [PATCH] Add a code comment to the test_send_timeout() test --- bin/tests/system/timeouts/tests-tcp.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/tests/system/timeouts/tests-tcp.py b/bin/tests/system/timeouts/tests-tcp.py index 994a9d746c..0aa7c167c5 100644 --- a/bin/tests/system/timeouts/tests-tcp.py +++ b/bin/tests/system/timeouts/tests-tcp.py @@ -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))