BUG/MINOR: http-ana: Don't eval front after-response rules if stopped on back
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Oct 2021 11:51:34 +0000 (13:51 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Oct 2021 12:12:19 +0000 (14:12 +0200)
commit597909f4e67866c4f3ecf77f95f2cd4556c0c638
tree73ed707ff1cec20f2e11617ce47ae6abb72f075a
parente20e026033385d71f0abfd63cc31dc334a8d1665
BUG/MINOR: http-ana: Don't eval front after-response rules if stopped on back

http-after-response rules evaluation must be stopped after a "allow". It
means the frontend ruleset must not be evaluated if a "allow" was performed
in the backend ruleset. Internally, the evaluation must be stopped if on
HTTP_RULE_RES_STOP return value. Only the "allow" action is concerned by
this change.

Thanks to this patch, http-response and http-after-response behave in the
same way.

This patch should be backported as far as 2.2.
reg-tests/http-rules/http_after_response.vtc
src/http_ana.c