From: Libor Peltan Date: Tue, 12 Aug 2025 15:36:34 +0000 (+0200) Subject: refresh: with pinned master, refresh the zone when the tolerance period times out X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fc169409728298eecc9799d81f45fa8f9f234bf;p=thirdparty%2Fknot-dns.git refresh: with pinned master, refresh the zone when the tolerance period times out --- diff --git a/src/knot/events/handlers/refresh.c b/src/knot/events/handlers/refresh.c index 583819f707..544fbe9c9f 100644 --- a/src/knot/events/handlers/refresh.c +++ b/src/knot/events/handlers/refresh.c @@ -1088,6 +1088,10 @@ static bool wait4pinned_master(struct refresh_data *data) } else if (data->zone->timers.master_pin_hit + data->fallback->pin_tol <= now) { data->xfr_type = XFR_TYPE_AXFR; return false; + // Replan the refresh to the moment when the pin tolerance times out. + } else { + zone_events_schedule_at(data->zone, ZONE_EVENT_REFRESH, + data->zone->timers.master_pin_hit + data->fallback->pin_tol); } return true;