]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: hlua: Properly enable/disable receives for TCP applets
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Mar 2026 18:15:34 +0000 (19:15 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 14:34:46 +0000 (15:34 +0100)
commite6a8ef55217ba9026c1d55eab87a2cc78b420be9
tree1d81c7466893d391817a5d5569057fb18d4dd103
parent7fe1a92bb34478dac8b8315a57c84bbe846afdb3
BUG/MINOR: hlua: Properly enable/disable receives for TCP applets

From a lua TCP applet, in functions used to retrieve data (receive,
try_receive and getline), we must take care to disable receives when data
are returned (or on failure) and to restart receives when these functions
are called again. In addition, when an applet execution is finished, we must
restart receives to properly drain the request.

This patch should be backported to 3.3. On older version, no bug was
reported so we can wait a report first.
src/hlua.c