From: Miroslav Lichvar Date: Mon, 27 Feb 2023 14:00:50 +0000 (+0100) Subject: ntp: don't adjust poll interval when waiting for NTS-KE X-Git-Tag: 4.4-pre1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6270a3eb7cf8e35673cb19ea8e12bd6c8b15ede2;p=thirdparty%2Fchrony.git 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. --- diff --git a/ntp_core.c b/ntp_core.c index 1d39dedd..3f7bbd31 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;