summaryrefslogtreecommitdiffstats
path: root/main/chrony/0002-ntp_sources-decrease-maximum-re-resolving-delay.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-05-30 16:26:57 +0300
committerTimo Teräs <timo.teras@iki.fi>2012-05-30 16:27:52 +0300
commite00d6745ffc1fc9417559809c1770e340495b50e (patch)
treea5a91a5e38aad17115eab57fdd0e89181d8b8c23 /main/chrony/0002-ntp_sources-decrease-maximum-re-resolving-delay.patch
parent12d8fbaf1947587969d5e88154a0bdce4808320c (diff)
downloadaports-e00d6745ffc1fc9417559809c1770e340495b50e.tar.bz2
aports-e00d6745ffc1fc9417559809c1770e340495b50e.tar.xz
main/chrony: improve behaviour if network is unavailable at startup
main uclibc related workaround, but also reduce the delays between name resolution attempts.
Diffstat (limited to 'main/chrony/0002-ntp_sources-decrease-maximum-re-resolving-delay.patch')
-rw-r--r--main/chrony/0002-ntp_sources-decrease-maximum-re-resolving-delay.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/chrony/0002-ntp_sources-decrease-maximum-re-resolving-delay.patch b/main/chrony/0002-ntp_sources-decrease-maximum-re-resolving-delay.patch
new file mode 100644
index 000000000..99610563d
--- /dev/null
+++ b/main/chrony/0002-ntp_sources-decrease-maximum-re-resolving-delay.patch
@@ -0,0 +1,26 @@
+From 895b93933ef885df69ceda763fb3d1616e8e4370 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
+Date: Wed, 30 May 2012 16:24:38 +0300
+Subject: [PATCH 2/2] ntp_sources: decrease maximum re-resolving delay
+
+From approximately an hour to 7.5 minutes.
+---
+ ntp_sources.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ntp_sources.c b/ntp_sources.c
+index 43a5d91..9c26bda 100644
+--- a/ntp_sources.c
++++ b/ntp_sources.c
+@@ -250,7 +250,7 @@ resolve_sources(void *arg)
+
+ if (unresolved_sources) {
+ /* Try again later */
+- if (resolving_interval < 9)
++ if (resolving_interval < 6)
+ resolving_interval++;
+ resolving_id = SCH_AddTimeoutByDelay(7 * (1 << resolving_interval), resolve_sources, NULL);
+ } else {
+--
+1.7.10.2
+