MINOR: stream: Save last evaluated rule on invalid yield
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 29 Oct 2024 17:15:20 +0000 (18:15 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Nov 2024 14:50:09 +0000 (15:50 +0100)
commit533b6f37ce6a4276bd8854cca7c3736147b026ec
treef4d6d5478a2378bd517d648bdbfe44d042f8bac8
parent14abd1881d441244d39ccb6c39d1393f2544314f
MINOR: stream: Save last evaluated rule on invalid yield

When an action yields while it is not allowed, an internal error is
reported. This interrupts the processing. So info about the last evaluated
rule must be filled.

This patch may be bakcported if needed. If so, the commit ("MINOR: stream:
Save last evaluated rule on invalid yield") must be backported first.

(cherry picked from commit 0b7605491e4ccb66a0468c219306adf354355e0d)
[cf: Of course the mentionned commit to be backported with this one is wrong. It
     must be "BUG/MINOR: http-ana: Report internal error if an action yields on
     a final eval"].
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/http_ana.c
src/tcp_rules.c