MINOR: tcp-rules: Kill connections when custom actions return ACT_RET_ERR
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Dec 2019 08:31:00 +0000 (09:31 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commit491ab5e2e5234c15fda964aa79e5a0be7e127365
tree6ad4809d5cddf96bdd196792ebf7e54eb69c3ca3
parent13403761d54931d45e7e946a94f1baa24f86ea8e
MINOR: tcp-rules: Kill connections when custom actions return ACT_RET_ERR

Thanks to the commit "MINOR: actions: Use ACT_RET_CONT code to ignore an error
from a custom action", it is now possible to trigger an error from a custom
action in tcp-content rules. Now, when a custom action returns the ACT_RET_ERR
code, it has the same behavior than a reject rules, the connection is killed.

Be careful if this patch is backported. The other mentioned patch must be
backported first.
src/tcp_rules.c