]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: hlua: wait for the request in HTTP applets
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 19 Nov 2026 13:51:19 +0000 (14:51 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 19 Nov 2026 15:58:22 +0000 (16:58 +0100)
commitd66af5638b0de95bf3667210cc9916b628f2d9f7
tree377319ac080c9e8f2223a7090b480fc8c980e643
parentd3dd7127e8da0b7197e4a5052479ae8ec91012c1
BUG/MINOR: hlua: wait for the request in HTTP applets

Since the HTTP applet uses its own buffers, it only waits for the input
buffer to be allocated before parsing the request, so it may run on an
empty buffer and crash on BUG_ON() when it is woken up before the request
was transferred, e.g. when the stream yields after the applet creation.

Let's wait for some input data instead, as the other HTTP applets do.

This was introduced by commit 48df877da ("MEDIUM: hlua: Update the http
applet to use its own buffers") in 3.3-dev4, so it must be backported to
3.3.
src/hlua.c