]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: hlua: Properly report EOS when http applet exits
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Jun 2026 05:57:51 +0000 (07:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Jun 2026 08:55:22 +0000 (10:55 +0200)
commite79af3d846fe853f04ee80afca37d384773edca8
tree83adab9ef8087389fb00d942a130ba4071730765
parent9854b6f98304f06a0fe4a421868f650d3291a1cb
BUG/MEDIUM: hlua: Properly report EOS when http applet exits

When the Lua HTTP applet was migrated to the new API to use its own buffers,
a regression was introduced. The EOS flag at the end of the response was no
longer set. While it is not an issue when the response length is known
(because of a content-length or a transfer-encoding header), it is an issue
for responses with an unkown payload size. For the stconn and the stream, in
that case, the EOS is used to detect the end of the response. Without this
info, the stream remains blocked.

To fix the issue, the EOS flag is now set as expected on the applet.

This patch should fix the issue #3422. It must be backport as far as 3.3.
src/hlua.c