BUG/MINOR: mux-h1: Ignore C-L when sending H1 messages if T-E is also set
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Sep 2023 13:05:03 +0000 (15:05 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Oct 2023 13:34:18 +0000 (15:34 +0200)
commitc367957851b17f1c153c4d0f75add35dea957d51
tree60ea408d41e2ae239c3ce1feebbefdf2ed940593
parent331241b084a336b754ac2317f3d8a237953131df
BUG/MINOR: mux-h1: Ignore C-L when sending H1 messages if T-E is also set

In fact, it is already done but both flags (H1_MF_CLEN and H1_MF_CHUNK) are
set on the H1 parser. Thus it is errorprone when H1 messages are sent,
especially because most of time, the "Content-length" case is processed
before the "chunked" one. This may lead to compute the wrong chunk size and
to miss the last chunk.

This patch must be backported as far as 2.6. This case is not handled in 2.4
and lower.
src/mux_h1.c