]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: applet: Fix HTX .rcv_buf callback function to release outbuf buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 Feb 2024 15:34:43 +0000 (16:34 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 Feb 2024 15:40:13 +0000 (16:40 +0100)
commit19559d44475b32cf24e85489ba31057c6fb6c963
treee08a1a65fc0bd6fd9740a0d1b7a2f261278c075c
parentdec017575d3a18c92e0d112bc8b92e1c557a10b8
BUG/MEDIUM: applet: Fix HTX .rcv_buf callback function to release outbuf buffer

In appctx_htx_rcv_buf(), HTX blocks found in the appctx output buffer are
copied into the channel buffer. At the end, the state of the underlying
buffer must be updated. If everything was copied, the buffer is reset. This
way, it will be released later, at the end of the applet process function.

However, here there was a typo. We do it on the input buffer instead of the
output buffer. As side effect, an empty HTX message remained stuck in the
appctx outbut buffer, blocking the applet and leading to blocked session
with no expiration date.

No backport needed.
src/applet.c