]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: fix computed length of emitted STREAM frames
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 5 Jun 2024 09:37:44 +0000 (11:37 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 10 Jun 2024 08:24:02 +0000 (10:24 +0200)
commit50470a5181b6105ad1914c0d4e67794a2f69c80a
tree849368759613e5caf0411e54a5c9621a3793138a
parent711338e1ceb061db0a5c832acdea8edbeafa712f
BUG/MINOR: quic: fix computed length of emitted STREAM frames

qc_build_frms() is responsible to encode multiple frames in a single
QUIC packet. It accounts for room left in the buffer packet for each
newly encded frame.

An incorrect computation was performed when encoding a STREAM frame in a
single packet. Frame length was accounted twice which would reduce in
excess the buffer packet room. This caused the remaining built frames to
be reduced with the resulting packet not able to fill the whole MTU.

The impact of this bug should be minimal. It is only present when
multiple frames are encoded in a single packet after a STREAM. However
in this case datagrams built are smaller than expecting, which is
suboptimal for bandwith.

This should be backported up to 2.6.
src/quic_tx.c