From 3934901e514df8bf0b0b22dda724e1fd4fb9d10c Mon Sep 17 00:00:00 2001 From: Aurelien DARRAGON Date: Tue, 19 Sep 2023 18:48:23 +0200 Subject: [PATCH] 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. --- src/proxy.c | 4 ++++ 1 file changed, 4 insertions(+) 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);