]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h1: Take care to update <kop> value during zero-copy forwarding
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Jan 2026 18:28:39 +0000 (19:28 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Jan 2026 06:39:05 +0000 (07:39 +0100)
commit529a8dbfbac8efbda5b0bdbe1abcf81f6b749d02
tree01672c3da75c343506e5e71478aba4be5739351d
parent0b29b76a526d4ce6da073a7afbbd406bb6ea0463
BUG/MEDIUM: mux-h1: Take care to update <kop> value during zero-copy forwarding

Since the extra field was removed from the HTX structure, a regression was
introduced when forwarding of chunked messages. The <kop> value was not
decreased as it should be when data were sent via the zero-copy
forwarding. Because of this bug, it was possible to announce a chunk size
larger than the chunk data sent.

To fix the bug, an helper function was added to properly update the <kop>
value when a chunk size is emitted. This function is now called when new
chunk is announced, including during zero-copy forwarding.

As a workaround, "tune.disable-zero-copy-forwarding" or just
"tune.h1.zero-copy-fwd-send off" can be set in the global section.

This patch should fix the issue #3230. It must be backported to 3.3.
src/mux_h1.c