]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: check fctl during STREAM frame build
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 24 Jan 2024 10:54:41 +0000 (11:54 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 31 Jan 2024 15:28:54 +0000 (16:28 +0100)
commit7dd6ed6321ca219a83709a8aabf6150042fdb4d0
tree0d9260b5c7be4f2561c5093775c76fddaa58a5b0
parentc6ef55407c5ea4a5c0f59cc9a8ae423c0403c12b
MINOR: mux-quic: check fctl during STREAM frame build

qcs_build_stream_frm() is responsible to generate a STREAM frame
pointing to the content of QCS TX buffer.

This patch moves send flow control overflow check from qcs_xfer_data()
to qcs_build_stream_frm(), i.e. from transfer between internal
QCS buffer and qc_stream_desc, to STREAM frame generation.

Flow control is both check at stream and connection level. For
connection flow control, as several frames are built before emission, an
accumulator is used as extra arguments to functions to account the total
length of already built frames.

This patch should not provide any functional changes. Its main purpose
is to prepare for the removal of QCS internal buffer.
src/mux_quic.c