From: Aurelien DARRAGON Date: Tue, 19 Sep 2023 16:48:23 +0000 (+0200) Subject: MINOR: proxy: report a warning for max_ka_queue in proxy_cfg_ensure_no_http() X-Git-Tag: v2.9-dev7~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3934901;p=thirdparty%2Fhaproxy.git MINOR: proxy: report a warning for max_ka_queue in proxy_cfg_ensure_no_http() Display a warning when max_ka_queue is set (it is the case when "max-keep-alive-queue" directive is used within a proxy section) to inform the user that this directives depends on the "http" mode to work and thus will safely be ignored. --- diff --git a/src/proxy.c b/src/proxy.c index f8bb876a08..80b64f3bda 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -1294,6 +1294,10 @@ struct server *findserver_unique_name(const struct proxy *px, const char *name, */ int proxy_cfg_ensure_no_http(struct proxy *curproxy) { + if (curproxy->max_ka_queue) { + ha_warning("max_ka_queue will be ignored for %s '%s' (needs 'mode http').\n", + proxy_type_str(curproxy), curproxy->id); + } if (curproxy->cookie_name != NULL) { ha_warning("cookie will be ignored for %s '%s' (needs 'mode http').\n", proxy_type_str(curproxy), curproxy->id);