]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use a single local port for ditch.pl
authorTom Krizek <tkrizek@isc.org>
Tue, 6 Feb 2024 14:35:49 +0000 (15:35 +0100)
committerTom Krizek <tkrizek@isc.org>
Thu, 8 Feb 2024 12:41:23 +0000 (13:41 +0100)
commit339fa5690a5d80deb287ad119dd8f900c38545a1
tree6202a072b88eeaf7896c6220de8f0b6cb8f62013
parent381763120b76c2e79ddf58136bc4a4360c235990
Use a single local port for ditch.pl

The ditch.pl script is used to generate burst traffic without waiting
for the responses. When running other tests in parallel, this can result
in a ephemeral port clash, since the ditch.pl process closes the socket
immediately. In rare occasions when the message ID also clashes with
other tests' queries, it might result in an UnexpectedSource error from
dnspython.

Use a dedicated port EXTRAPORT8 which is reserved for each test as a
source port for the burst traffic.
bin/tests/system/ditch.pl
bin/tests/system/fetchlimit/tests.sh
bin/tests/system/serve-stale/tests.sh