]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Mark a primary as unreachable on timed out in xfin
authorMark Andrews <marka@isc.org>
Wed, 19 Jul 2023 23:16:03 +0000 (09:16 +1000)
committerMark Andrews <marka@isc.org>
Fri, 21 Jul 2023 22:17:11 +0000 (08:17 +1000)
When a primary server is not responding, mark it as temporarialy
unreachable.  This will prevent too many zones queuing up on a
unreachable server and allow the refresh process to move onto
the next primary sooner once it has been so marked.

lib/dns/xfrin.c

index bf3460169a041d7ca781184a38ec5c76fac95f19..b144c46663b4cd677865d910a3a100fbceb60568 100644 (file)
@@ -1057,9 +1057,11 @@ failure:
        case ISC_R_NETUNREACH:
        case ISC_R_HOSTUNREACH:
        case ISC_R_CONNREFUSED:
+       case ISC_R_TIMEDOUT:
                /*
-                * Add the server to unreachable primaries table only if
-                * the server has a permanent networking error.
+                * Add the server to unreachable primaries table if
+                * the server has a permanent networking error or
+                * the connection attempt as timed out.
                 */
                zmgr = dns_zone_getmgr(xfr->zone);
                if (zmgr != NULL) {