From c64274053e3c24fe408b684acd0413214e91b0bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= <vladimir.cunat@nic.cz>
Date: Mon, 29 Jan 2018 16:37:41 +0100
Subject: [PATCH] daemon: decrease timeouts

Let's allow 4 UDP + 4 TCP attempts, within 2+2 seconds,
and then start also using stale cache.
---
 lib/defines.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/defines.h b/lib/defines.h
index 19f085621..4a66d9888 100644
--- a/lib/defines.h
+++ b/lib/defines.h
@@ -57,8 +57,8 @@ static inline int KR_COLD kr_error(int x) {
  * Connection limits.
  * @cond internal
  */
-#define KR_CONN_RTT_MAX 3000 /* Timeout for network activity */
-#define KR_CONN_RETRY 250    /* Retry interval for network activity */
+#define KR_CONN_RTT_MAX 2000 /* Timeout for network activity */
+#define KR_CONN_RETRY 200    /* Retry interval for network activity */
 #define KR_ITER_LIMIT 100    /* Built-in iterator limit */
 #define KR_RESOLVE_TIME_LIMIT 10000 /* Upper limit for resolution time of single query, ms */
 #define KR_CNAME_CHAIN_LIMIT 40 /* Built-in maximum CNAME chain length */
-- 
GitLab