]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: don't adjust poll interval when waiting for NTS-KE
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 27 Feb 2023 14:00:50 +0000 (15:00 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 27 Feb 2023 14:36:30 +0000 (15:36 +0100)
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

index 1d39dedd472025bee75feeb5d498adbdc4f2bc06..3f7bbd3143419d31ae084eb9a89ac7c6c5c0eff2 100644 (file)
@@ -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;