From b58f567ff3966e955a79f6021cc7cd978c3338d4 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 26 Mar 2026 13:42:28 +0100 Subject: [PATCH] BUG/MINOR: tcpcheck: Don't enable http_needed when parsing HTTP samples In tcpchecks context, when HTTP sample expressions are parsed, there is no reason to set the proxy's http_needed value to 1. This value is only used for streams to allocate an HTTP txn. This patch could be backported to all stable versions. --- src/tcpcheck.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tcpcheck.c b/src/tcpcheck.c index 57b13b415..70861b6ef 100644 --- a/src/tcpcheck.c +++ b/src/tcpcheck.c @@ -2789,7 +2789,6 @@ struct tcpcheck_rule *parse_tcpcheck_connect(char **args, int cur_arg, struct pr args[cur_arg], sample_src_names(port_expr->fetch->use)); goto error; } - px->http_needed |= !!(port_expr->fetch->use & SMP_USE_HTTP_ANY); } else if (port > 65535 || port < 1) { memprintf(errmsg, "expects a valid TCP port (from range 1 to 65535) or a sample expression, got %s.", @@ -3590,7 +3589,6 @@ struct tcpcheck_rule *parse_tcpcheck_expect(char **args, int cur_arg, struct pro args[cur_arg], sample_src_names(status_expr->fetch->use)); goto error; } - px->http_needed |= !!(status_expr->fetch->use & SMP_USE_HTTP_ANY); } else if (strcmp(args[cur_arg], "tout-status") == 0) { if (in_pattern) {