]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: vars: do not freeze the connection when the expression cannot be fetched
authorWilly Tarreau <w@1wt.eu>
Tue, 23 Jun 2015 13:17:33 +0000 (15:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Jun 2015 13:17:33 +0000 (15:17 +0200)
commite44136fe69a1b4fa7346114fa4923f3a0de59aee
treebd0622c8d30486a515f65cc46be43bfe2cfc12f6
parentebcd4844e82a4198ea5d98fe491a46267da1d1ec
BUG/MEDIUM: vars: do not freeze the connection when the expression cannot be fetched

Commit 4834bc7 ("MEDIUM: vars: adds support of variables") brought a bug.
Setting a variable from an expression that doesn't resolve infinitely
blocks the processing.

The internal actions API must be changed to let the caller pass the various
flags regarding the state of the analysis (SMP_OPT_FINAL).

For now we only fix the issue by making the action_store() function always
return 1 to prevent any blocking.

No backport is needed.
src/vars.c