]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua: Rely on CF_EOI to detect end of message in HTTP applets
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Aug 2022 13:37:16 +0000 (15:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Aug 2022 13:37:17 +0000 (15:37 +0200)
commit4a20972a954b2af0ec75b21e32d2d56ae97a8493
tree2e24539ce366befbce3065242ca4d62ed95fa5ad
parentb372f16d352bfa20a3abbd60003e113976d16c9c
BUG/MINOR: hlua: Rely on CF_EOI to detect end of message in HTTP applets

applet:getline() and applet:receive() functions for HTTP applets must rely
on the channel flags to detect the end of the message and not on HTX
flags. It means CF_EOI must be used instead of HTX_FL_EOM.

It is important because the HTX flag is transient. Because there is no flag
on HTTP applets to save the info, it is not reliable. However CF_EOI once
set is never removed. So it is safer to rely on it. Otherwise, the call to
these functions hang.

This patch must be backported as far as 2.4.
src/hlua.c