]> 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:46:52 +0000 (13:46 +0100)
commitbe735330bbbff916392fcd3dcb6bf9e15cc78525
treeb5f26102557e62cde422b88bedc16e8b90be79c7
parentac12ddb6e1e7cdd61da5e6ee0a612370fde94cb4
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.

(cherry picked from commit 339fa5690a5d80deb287ad119dd8f900c38545a1)
bin/tests/system/ditch.pl
bin/tests/system/fetchlimit/tests.sh
bin/tests/system/serve-stale/tests.sh