]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: Abort execution of actions that yield on a final evaluation
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Jul 2020 09:59:58 +0000 (11:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Jul 2020 07:31:09 +0000 (09:31 +0200)
commit498c483009bfb69e75a35403c758b832d4d997d3
tree8e5a3bd121f5017f063c58c654fb19962b7ba206
parent385101e53816dc1b7bc1fc957adc512ce8a07cb4
BUG/MINOR: lua: Abort execution of actions that yield on a final evaluation

A Lua action may yield. It may happen because the action returns explicitly
act.YIELD or because the script itself yield. In the first case, we must abort
the script execution if it is the final rule evaluation, i.e if the
ACT_OPT_FINAL flag is set. The second case is already covered.

This patch must be backported to 2.2.
src/hlua.c