]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: http-ana: Reset analyse_exp date after 'wait-for-body' action master
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Oct 2025 15:02:47 +0000 (17:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Oct 2025 15:09:16 +0000 (17:09 +0200)
'wait-for-body' action set analyse_exp date for the channel to the
configured time. However, when the action is finished, it does not reset
it. It is an issue for some following actions, like 'pause', that also rely
on this date.

To fix the issue, we must take care to reset the analyse_exp date to
TICK_ETERNITY when the 'wait-for-body' action is finished.

This patch should fix the issue #3147. It must be backported to all stable
versions.

src/http_ana.c

index d3e1dc98bdf602c4286f25addb566bb8d41af44b..3184c69ec7e912be634c4968a139ed9ac4582e7a 100644 (file)
@@ -4320,6 +4320,8 @@ enum rule_result http_wait_for_msg_body(struct stream *s, struct channel *chn,
        }
 
   end:
+       if (ret != HTTP_RULE_RES_YIELD)
+               chn->analyse_exp = TICK_ETERNITY;
        return ret;
 
   abort: