Mark a primary as unreachable on timed out in xfin

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.

(cherry picked from commit 621c117101)
This commit is contained in:
Mark Andrews 2023-07-20 09:16:03 +10:00
parent 4e12fb257e
commit c36d41d39c

View file

@ -1336,9 +1336,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) {