]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: Ignore the reserve to know if a channel is full or not
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 26 Feb 2020 10:59:19 +0000 (11:59 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2020 13:13:00 +0000 (14:13 +0100)
commit0ec740eaee5b919b7d568daf251c8ce218143639
tree70589198eb25acc8891c3746674d4b47f4173d05
parent4ad7310399b60b53f1b9406ac9be7cdbb701db86
BUG/MINOR: lua: Ignore the reserve to know if a channel is full or not

The Lua function Channel.is_full() should not take care of the reserve because
it is not called from a producer (an applet for instance). From an action, it is
allowed to overwrite the buffer reserve.

This patch should be backported as far as 1.7. But it must be adapted for 1.8
and lower because there is no HTX on these versions.
src/hlua.c