]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: hlua: Properly enable/disable line receives from HTTP applet
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 2 Mar 2026 18:07:07 +0000 (19:07 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 14:34:46 +0000 (15:34 +0100)
commita779d0d23ac3bd30e422d26fcae39dfff93fd524
tree98cb16fe358f6f726ae23606ab62091a29460e6b
parent0a02acecf3161e8484df42bfbffec66e82420e80
BUG/MINOR: hlua: Properly enable/disable line receives from HTTP applet

From a lua HTTP applet, in the getline() function, we must take care to
disable receives when a line is retrieved and to restart receives when the
function is called again. In addition, when an applet execution is finished,
we must restart receives to properly drain the request.

This patch could help to fix #3293. It must be backported to 3.3. On older
version, no bug was reported so we can wait a report first. But in that
case, hlua_applet_http_recv() should also be fixed (on 3.3 it was fixed
during the applets refactoring).
src/hlua.c