]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: hlua: Don't set EOM flag on an empty HTX message in HTTP applet
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 Apr 2022 08:07:18 +0000 (10:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 Apr 2022 09:04:07 +0000 (11:04 +0200)
commitf89af9c20597d8a0bf741559e1650fe3af5f2f25
tree1ff3e0312425f7d43e6cf96d92b255aed2419fc7
parent08b45cb8fd9b0660947fc59ebb70b9edd12ea7d4
BUG/MEDIUM: hlua: Don't set EOM flag on an empty HTX message in HTTP applet

In a lua HTTP applet, when the script is finished, we must be sure to not
set the EOM on an empty message. Otherwise, because there is no data to
send, the mux on the client side may miss the end of the message and
consider any shutdown as an abort.

See "UG/MEDIUM: stats: Be sure to never set EOM flag on an empty HTX
message" for details.

This patch must be backported as far as 2.4. On previous version there is
still the EOM HTX block.
src/hlua.c