diff --git a/doc/configuration.txt b/doc/configuration.txt index 8aafbe3ce..66c932597 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -11734,7 +11734,7 @@ hold answer was in . It follows the HAProxy time format. is in milliseconds by default. - Default value is 10s for "valid" and 30s for others. + Default value is 10s for "valid", 0s for "obsolete" and 30s for others. Note: since the name resolution is triggered by the health checks, a new resolution is triggered after modulo the parameter of diff --git a/src/cfgparse.c b/src/cfgparse.c index eebd72c11..ee249794f 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2169,7 +2169,7 @@ int cfg_parse_resolvers(const char *file, int linenum, char **args, int kwm) curr_resolvers->hold.other = 30000; curr_resolvers->hold.refused = 30000; curr_resolvers->hold.timeout = 30000; - curr_resolvers->hold.obsolete = 30000; + curr_resolvers->hold.obsolete = 0; /* default hold period for valid is 10s */ curr_resolvers->hold.valid = 10000; curr_resolvers->timeout.retry = 1000;