mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 15:35:07 -05:00
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.
This commit is contained in:
@@ -164,13 +164,12 @@ option can be specified. *chronyd* will not try to poll the server until it is
|
||||
enabled to do so (by using the <<chronyc.adoc#online,*online*>> command in
|
||||
*chronyc*).
|
||||
*auto_offline*:::
|
||||
With this option, the server will be assumed to have gone offline when two
|
||||
requests have been sent to it without receiving a response. This option avoids
|
||||
With this option, the server will be assumed to have gone offline when sending
|
||||
a request fails, e.g. due to a missing route to the network. This option avoids
|
||||
the need to run the <<chronyc.adoc#offline,*offline*>> command from *chronyc*
|
||||
when disconnecting the network link, if it is safe to assume that the requests
|
||||
and responses will not be dropped in the network, e.g. in a trusted local
|
||||
network. (It will still be necessary to use the <<chronyc.adoc#online,*online*>>
|
||||
command when the link has been established, to enable measurements to start.)
|
||||
when disconnecting the network link. (It will still be necessary to use the
|
||||
<<chronyc.adoc#online,*online*>> command when the link has been established, to
|
||||
enable measurements to start.)
|
||||
*prefer*:::
|
||||
Prefer this source over sources without the *prefer* option.
|
||||
*noselect*:::
|
||||
|
||||
Reference in New Issue
Block a user