Hi,

Madison May reported that the timeout applied by the default
configuration is inproperly set up.
This patch fix this:
 - hold valid default to 10s
 - timeout retry default to 1s


Baptiste
From d84e08b599c30fb1d0d35a3715d76c331ee4c1c4 Mon Sep 17 00:00:00 2001
From: Baptiste Assmann <bed...@gmail.com>
Date: Tue, 14 Jul 2015 21:42:49 +0200
Subject: [PATCH] FIX wrong time unit for some DNS default parameters

Madison May reported that the timeout applied by the default
configuration is inproperly set up.
This patch fix this:
 - hold valid default to 10s
 - timeout retry default to 1s
---
 src/cfgparse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cfgparse.c b/src/cfgparse.c
index 4015804..fb9d45b 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -2187,8 +2187,8 @@ int cfg_parse_resolvers(const char *file, int linenum, char **args, int kwm)
 		curr_resolvers->id = strdup(args[1]);
 		curr_resolvers->query_ids = EB_ROOT;
 		/* default hold period for valid is 10s */
-		curr_resolvers->hold.valid = 10;
-		curr_resolvers->timeout.retry = 1;
+		curr_resolvers->hold.valid = 10000;
+		curr_resolvers->timeout.retry = 1000;
 		curr_resolvers->resolve_retries = 3;
 		LIST_INIT(&curr_resolvers->nameserver_list);
 		LIST_INIT(&curr_resolvers->curr_resolution);
-- 
2.4.0

Reply via email to