]> git.kaiwu.me - haproxy.git/commit
MEDIUM: mux-h1: Harden test for short data at end of stream
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 3 Sep 2026 11:39:04 +0000 (13:39 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 3 Sep 2026 12:13:46 +0000 (14:13 +0200)
commit4721a96f161b83cbb5015d15821e84e16fe21151
treea1f760f9ae78e71abfabf5225e344ce0e0f0c9a1
parentb960ab409aa01797ee75a857849c48600a423e37
MEDIUM: mux-h1: Harden test for short data at end of stream

Commit 75dd2c18dda29f9893574ef982ddf66de16f0408 made it so if we had a
content-length, and we sent less data than expected, we'd make sure to
close the connection and to not reuse it, otherwise the server would
still expect more data. But it can also happen with no content-length,
with chunked data. There is absolutely no reason we reach that code
while still expecting more data, so just always consider that an error,
no matter if we have content-length or not.

This should be backported up to 2.8.
src/mux_h1.c