]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
increase 1-second timeout in fetchlimit
authorEvan Hunt <each@isc.org>
Thu, 2 Sep 2021 16:11:02 +0000 (09:11 -0700)
committerEvan Hunt <each@isc.org>
Fri, 3 Sep 2021 06:23:46 +0000 (06:23 +0000)
when "checking lame server clients are dropped below the hard limit",
periodically a query is sent for a name for which the server is
authoritative, to verify that legitimate queries can still be
processed while the server is dealing with a flood of lame delegation
queries. those queries used the same dig options as elsewhere in the
fetchlimit test, including "+tries=1 +timeout=1". on slow systems, a
1-second timeout may be insufficient to get an answer even if the server
is behaving well. this commit increases the timeout for the check
queries to 2 seconds in hopes that will be enough to eliminate test
failures in CI.

bin/tests/system/fetchlimit/tests.sh

index fb6ecd0d7b8af950f5fd9194d6a5e75a5e32a852..6364b7e5a015884cf56ad10ef9c1b27527982378 100644 (file)
@@ -161,7 +161,7 @@ success=0
 touch ans4/norespond
 for try in 1 2 3 4 5; do
     burst b $try 400
-    $DIGCMD a ${try}.example > dig.out.ns3.$try
+    $DIGCMD +time=2 a ${try}.example > dig.out.ns3.$try
     stat 400 || exceeded=`expr $exceeded + 1`
     grep "status: NOERROR" dig.out.ns3.$try > /dev/null 2>&1 && \
             success=`expr $success + 1`