summaryrefslogtreecommitdiff
path: root/src/timesync/timesyncd-manager.h
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar@redhat.com>2014-08-27 16:47:24 +0200
committerKay Sievers <kay@vrfy.org>2014-09-02 13:34:16 +0200
commit63463bf091949e0178b749016828ec400c106582 (patch)
tree76efa721141d75dae5e8867e7e295f53a203a4aa /src/timesync/timesyncd-manager.h
parentcedc611207b6a14cdbaf1d73e12b62ee55cc53de (diff)
timesyncd: wait before reconnecting to first server
When all servers are exhausted, wait for one poll interval before trying to connect again to the first server in the list. Also, keep increasing the polling interval to make sure a client not getting any valid replies will not send requests to any server more frequently than is allowed by the maximum polling interval.
Diffstat (limited to 'src/timesync/timesyncd-manager.h')
-rw-r--r--src/timesync/timesyncd-manager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/timesync/timesyncd-manager.h b/src/timesync/timesyncd-manager.h
index 2345bf8f36..bb3e50915e 100644
--- a/src/timesync/timesyncd-manager.h
+++ b/src/timesync/timesyncd-manager.h
@@ -41,6 +41,7 @@ struct Manager {
LIST_HEAD(ServerName, fallback_servers);
RateLimit ratelimit;
+ bool exhausted_servers;
/* network */
sd_event_source *network_event_source;