]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux_quic: fix freeze transfer after QCS rxbuf realign
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 16 Jun 2026 15:10:50 +0000 (17:10 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 16 Jun 2026 16:00:13 +0000 (18:00 +0200)
commit7266ed8c30eddfcb90a04f787da74d5ffa942333
tree5ed25d7c20a4af912536024b2eac93a8324849c7
parent9a6d1fe3f00d86ab4ea6ea6ea0a5d48fc058a513
BUG/MEDIUM: mux_quic: fix freeze transfer after QCS rxbuf realign

QCS uses a multiple Rx buffer for incoming data to decode. However this
may cause the app proto layer to block on decoding if some data are
splitted across two buffers. In this case qcs_transfer_rx_data() is used
to move the data in the same current buffer.

However, this function contains a bug as the next Rx buffer is not
reinserted as expected in the QCS tree after the move operation. This
can cause data loss which will cause a transfer freeze. This may affect
POST requests on the frontend side as well as most backend transfers.

This patch fixes the reinsert operation. It is now performed as expected
if the next rxbuf is not fully truncated. In the opposite case, the
rxbuf can simply be freed completely.

This must be backported up to 3.2.
src/mux_quic.c