]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon: decrease timeouts
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 29 Jan 2018 15:37:41 +0000 (16:37 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 31 Jan 2018 08:36:38 +0000 (09:36 +0100)
Let's allow 4 UDP + 4 TCP attempts, within 2+2 seconds,
and then start also using stale cache.

lib/defines.h

index 19f0856213cc47ece9b981945d12242ad378a481..4a66d9888a41b5ef0b19b2a1a30e51259eb4ca9b 100644 (file)
@@ -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 */