BUG/MEDIUM: lua: Reset analyse expiration timeout before executing a lua action
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Jun 2020 16:46:07 +0000 (18:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Jun 2020 09:15:06 +0000 (11:15 +0200)
commit638680fafc3dd6a5c562406e5d349d61c9aabcc1
tree0b7a5d272d4536b654735da4ebe71591c7b0d344
parent7b18cabe8a78746cfcb5db26d55a7a9a9c961d6b
BUG/MEDIUM: lua: Reset analyse expiration timeout before executing a lua action

Before executing a lua action, the analyse expiration timeout of the
corresponding channel must be reset. Otherwise, when it expires, for instance
because of a call to core.msleep(), if the action yields, an expired timeout
will be used for the stream's task, leading to a loop.

This patch should fix the issue #661. It must be backported in all versions
supporting the lua.

(cherry picked from commit 23308ebf0d603d3f81b4c7a5bdcd82f1cd70c449)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c