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.
This commit is contained in:
Mark Andrews
2023-07-20 09:16:03 +10:00
parent 2f9322f88d
commit 621c117101

View 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) {