mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
BUG/MINOR: tcp-rules: Set the inspect-delay when a tcp-response action yields
On a tcp-response content ruleset evaluation, the inspect-delay is engaged when rule's conditions are not validated but not when the rule's action yields. This patch must be backported to all supported versions.
This commit is contained in:
parent
19dbf2d625
commit
54f3e183c8
@ -366,7 +366,9 @@ resume_execution:
|
|||||||
|
|
||||||
missing_data:
|
missing_data:
|
||||||
channel_dont_close(rep);
|
channel_dont_close(rep);
|
||||||
s->current_rule = rule;
|
/* just set the analyser timeout once at the beginning of the response */
|
||||||
|
if (!tick_isset(rep->analyse_exp) && s->be->tcp_rep.inspect_delay)
|
||||||
|
rep->analyse_exp = tick_add(now_ms, s->be->tcp_rep.inspect_delay);
|
||||||
DBG_TRACE_DEVEL("waiting for more data", STRM_EV_STRM_ANA|STRM_EV_TCP_ANA, s);
|
DBG_TRACE_DEVEL("waiting for more data", STRM_EV_STRM_ANA|STRM_EV_TCP_ANA, s);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user