From ccebec3eb687b36c5742e6bbe24b2e7b490ce093 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 9 Mar 2023 11:37:45 +0100 Subject: [PATCH] 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. --- ntp_io_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_io_linux.c b/ntp_io_linux.c index cb0768f..b3d828e 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;