BUG/MINOR: dns: 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
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 @@
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);