From: Miroslav Lichvar Date: Thu, 9 Mar 2023 10:37:45 +0000 (+0100) Subject: ntp: increase socket resume timeout to 1 millisecond X-Git-Tag: 4.4-pre1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccebec3eb687b36c5742e6bbe24b2e7b490ce093;p=thirdparty%2Fchrony.git ntp: increase socket resume timeout to 1 millisecond This seems to work significantly better on some hardware and is still shorter than burst interval at the minimum configurable poll. --- diff --git a/ntp_io_linux.c b/ntp_io_linux.c index cb0768f0..b3d828ef 100644 --- a/ntp_io_linux.c +++ b/ntp_io_linux.c @@ -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;