]> git.ipfire.org Git - thirdparty/bind9.git/commit
Test for the hard fetchlimit instead of soft fetchlimit
authorOndřej Surý <ondrej@isc.org>
Wed, 4 Dec 2019 23:02:43 +0000 (00:02 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 5 Dec 2019 15:33:12 +0000 (16:33 +0100)
commitc35a4e05fa2d0a603120031ab4e7ce0090c5eb3f
tree6086c6b02e20def411f71b3c4cf1bb7242c3c7ec
parenta07f9b71e934f44e6d818a2293efb91ad5345770
Test for the hard fetchlimit instead of soft fetchlimit

Previously, the fetchlimit tested the recursive-clients soft limit
that's defined as 90% of the hard limit (the actual configured value).
This worked previously because the reaping of the oldest recursive
client was put on the same event queue as the current TCP client, thus
the cleaning has happened before the new TCP client established a new
connection.

With the change in BIND 9.14 that added a multiple event queues the
cleaning of the oldests clients is no longer synchronous and could
happen stochastically making the soft limit testing fail often.  The
situation became even worse with the new networking manager, thus we
change the system test to fail only if the hard limit bound is not
honored.

Changing the accounting of the already reaped TCP clients so the soft
limit testing is possible again is out of the scope for this change.
bin/tests/system/fetchlimit/tests.sh