]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: increase socket resume timeout to 1 millisecond
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 9 Mar 2023 10:37:45 +0000 (11:37 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 9 Mar 2023 15:05:38 +0000 (16:05 +0100)
This seems to work significantly better on some hardware and is still
shorter than burst interval at the minimum configurable poll.

ntp_io_linux.c

index cb0768f06323d502bf7b246c2ddf7f4fb9bb63bf..b3d828ef6926653bbf91cde09241d8084dab13bb 100644 (file)
@@ -91,7 +91,7 @@ static int permanent_ts_options;
    suspend reading of packets from the receive queue until a HW transmit
    timestamp is received from the error queue or a timeout reached. */
 
-#define RESUME_TIMEOUT 200.0e-6
+#define RESUME_TIMEOUT 0.001
 
 struct HwTsSocket {
   int sock_fd;