]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h1: Don't delay send if message with c-l was fully sent
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jul 2026 12:21:27 +0000 (14:21 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Jul 2026 05:29:50 +0000 (07:29 +0200)
commitb2137b711b2a9b66507544d3a2a47db15548da5e
treeaaf0e3c764147454ae40a5285dfaadf46fbea77d
parentaa7d0c9d269fd1826ef174cffa26f5ef9f9283ed
BUG/MINOR: mux-h1: Don't delay send if message with c-l was fully sent

In the H1 multiplexer, if a message was fully sent considering the specified
content-length, the MSG_MORE flag must be unset, regardless the upper layer
said. This should avoid a extra latency of 200ms when this happens while the
HTX EOM flag is not set on the message. This may happen for H2/H3 messages
with trailers or if the END_OF_STREAM was not reported yet on H2/H3 side. In
both cases, on H1 side, no more data will be sent (trailers will be
dropped). So we must never delay the send.

This patch should fix the issue #3447. It must be backported to all
supported versions.
src/mux_h1.c