]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: add support for multiple suspended sockets
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 8 Mar 2023 16:07:38 +0000 (17:07 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 9 Mar 2023 14:49:43 +0000 (15:49 +0100)
commit3ea3e0efd7fed4a9193aa17c35917fce10935b3a
treec5b6672621113324b6f8d54f2eabdb1b697d2d3c
parentc3e4e3e47a443927582e77c54b962efb78e3a2cb
ntp: add support for multiple suspended sockets

With some hardware it takes milliseconds to get the HW TX timestamp.

Rework the code to handle multiple suspended client-only sockets at the
same time in order to allow longer timeouts, which may overlap for
different sources. Instead of waiting for the first read event simply
suspend the socket and create timeout when the HW TX timestamp is
requested.
ntp_io.c
ntp_io_linux.c
ntp_io_linux.h