From: Tim Duesterhus Date: Tue, 14 May 2019 18:57:56 +0000 (+0200) Subject: MEDIUM: Make 'resolution_pool_size' directive fatal X-Git-Tag: v2.0-dev4~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3506dae3421c72fcf0814fd497b1979862081766;p=thirdparty%2Fhaproxy.git MEDIUM: Make 'resolution_pool_size' directive fatal This directive never appeared in a stable release and instead was introduced and deprecated within 1.8-dev. While it technically could be outright removed we detect it and error out for good measure. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 8aa9f2c7b9..7543cc3fb4 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -12759,11 +12759,6 @@ hold Default value is 10s for "valid", 0s for "obsolete" and 30s for others. -resolution_pool_size (deprecated) - Defines the number of resolutions available in the pool for this resolvers. - If not defines, it defaults to 64. If your configuration requires more than - , then HAProxy will return an error when parsing the configuration. - resolve_retries Defines the number of queries to send to resolve a server name before giving up. diff --git a/src/cfgparse.c b/src/cfgparse.c index ab5a2eb75c..a16628a5c2 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -1250,9 +1250,9 @@ resolv_out: curr_resolvers->accepted_payload_size = i; } else if (strcmp(args[0], "resolution_pool_size") == 0) { - ha_warning("parsing [%s:%d] : '%s' directive is now deprecated and ignored.\n", + ha_alert("parsing [%s:%d] : '%s' directive is not supported anymore (it never appeared in a stable release).\n", file, linenum, args[0]); - err_code |= ERR_WARN; + err_code |= ERR_ALERT | ERR_FATAL; goto out; } else if (strcmp(args[0], "resolve_retries") == 0) {