]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add a code comment to the test_send_timeout() test
authorMichał Kępień <michal@isc.org>
Mon, 4 Jul 2022 21:10:59 +0000 (23:10 +0200)
committerMichał Kępień <michal@isc.org>
Mon, 4 Jul 2022 21:10:59 +0000 (23:10 +0200)
bin/tests/system/timeouts/tests-tcp.py

index 994a9d746ccea77e12cc169a499c520ffc4727d0..0aa7c167c52fe5ea0ccd94c5906ce8863fee6736 100644 (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))