mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-03 18:11:06 +02:00
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.
This commit is contained in:
parent
978119caa6
commit
b58f567ff3
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user