From c36d41d39c10f8e2516a375084f312cdd911dfd8 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 20 Jul 2023 09:16:03 +1000 Subject: [PATCH] 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 621c117101c36ed3781431270e6c6dfc4364420b) --- lib/dns/xfrin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c index b481368129..53572774b3 100644 --- a/lib/dns/xfrin.c +++ b/lib/dns/xfrin.c @@ -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) {