Commit c6427405 authored by Vladimír Čunát's avatar Vladimír Čunát

daemon: decrease timeouts

Let's allow 4 UDP + 4 TCP attempts, within 2+2 seconds,
and then start also using stale cache.
parent 1a721e29
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment