]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h1: Return an error on trailers if last chunk is unfinished
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 3 Sep 2026 19:52:38 +0000 (21:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Sep 2026 08:23:43 +0000 (10:23 +0200)
commit6f59a49d02b282b5bb58e502c5b97bcbe78db084
tree08ac362695ec81e0cb0b96b0a70cbdccb3c94fb3
parent23ebd0e959fff26321e6d384595a1f8afb198f27
BUG/MINOR: mux-h1: Return an error on trailers if last chunk is unfinished

On send patch, there were already some tests to detect truncated chunks, but
always when handling an HTX DATA bloc. There was nothing similar on
trailers. So it was possibly to emit end of chunks and start to send
trailers while the last chunk was unfinished.

So it is a bug, but only it could only be triggered if another part is able
to emit invalid HTX message. Unfortunatly it was the case. This patch is
related to the commit 86a4ebc76 ("BUG/MAJOR: h3: reject H3 truncated
frames").

This patch should be backported as far as 3.0. On older versions, the code
is too different.
src/mux_h1.c