BUG/MEDIUM: hlua: Properly detect shudowns for TCP applets based on the new API
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 May 2025 16:24:53 +0000 (18:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 May 2025 13:15:56 +0000 (15:15 +0200)
commit272c1775a03b4bba3ac5d264f9024b563e21842e
tree16b7216a48034ceac86e3fe9e3312816b03e3629
parent75cffa1a6088d31d3643232fb4a1a6562007214c
BUG/MEDIUM: hlua: Properly detect shudowns for TCP applets based on the new API

The internal function responsible to receive data for TCP applets with
internal buffers is buggy. Indeed, for these applets, the buffer API is used
to get data. So there is no tests on the SE to properly detect connection
shutdowns. So, it must be performed by hand after the call to b_getblk_nc().

This patch must be backported as far as 3.0.

(cherry picked from commit c64781c2c8b307fba7499fc70102d4246e850240)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit ecc8126ef97836044b1bc962fd4b9c91e89c353f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c