From 6270a3eb7cf8e35673cb19ea8e12bd6c8b15ede2 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 27 Feb 2023 15:00:50 +0100 Subject: [PATCH] ntp: don't adjust poll interval when waiting for NTS-KE Don't adjust the NTP polling interval and decrement the burst count when NAU_PrepareRequestAuth() fails (e.g. no NTS-KE response received yet, network being down, or the server refusing connections), same as if an NTP request could not be sent. Rely on the rate limiting implemented in the NTS code. --- ntp_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ntp_core.c b/ntp_core.c index 1d39ded..3f7bbd3 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1309,9 +1309,6 @@ transmit_timeout(void *arg) /* Prepare authentication */ if (!NAU_PrepareRequestAuth(inst->auth)) { - if (inst->burst_total_samples_to_go > 0) - inst->burst_total_samples_to_go--; - adjust_poll(inst, 0.25); SRC_UpdateReachability(inst->source, 0); restart_timeout(inst, get_transmit_delay(inst, 1, 0.0)); return;