]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: change auto_offline to trigger on failed transmissions
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 24 May 2018 15:29:15 +0000 (17:29 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 25 May 2018 08:53:21 +0000 (10:53 +0200)
commit7637faa0d080b1604e2dc1ee86546a7a248170af
treeb40a256d47a4f791ac788bbb80549fafc5b4b19c
parent8a57a28177c358967058fefe974d6a1310395070
ntp: change auto_offline to trigger on failed transmissions

Instead of counting missing responses, switch to the offline state
immediately when sendmsg() fails.

This makes the option usable with servers and networks that may drop
packets, and the effect will be consistent with the onoffline command.
doc/chrony.conf.adoc
ntp_core.c