]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lua/htx: Handle EOM in receive/get_line calls in HTTP applets
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 18 Dec 2018 15:43:35 +0000 (16:43 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 19 Dec 2018 12:45:53 +0000 (13:45 +0100)
commite461e34d64bb1f161500a9cfd628978332578a3c
treec120b5e472223f7a06683e7fb9df0cf7035e6387
parentb6aadbd19ef33d375ea06079d7034c55b6f5eafc
BUG/MEDIUM: lua/htx: Handle EOM in receive/get_line calls in HTTP applets

In HTTP applets, the request's EOM was removed like other blocks when receive or
get_line was called from lua scripts. So it was impossible to stop receiving
data on successive calls when all the request body was already consumed,
blocking infinitly the applet.

Now, we never consume the EOM. So it is easy to interrupt receive/get_line
calls. In all cases, this block is consumed when the applet ends.
src/hlua.c