]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: split STREAM and RS/SS emission
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 13 Dec 2024 16:44:38 +0000 (17:44 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 Dec 2024 08:40:21 +0000 (09:40 +0100)
commit9ecc1a8e578c67e8653ba7d1e9c5441f5ad2eca8
tree63ae5e08f3da94c53f0652a5f7803d9e9dcc5195
parent244dc00b09868f52864d50fc14af8d981c81424b
MINOR: mux-quic: split STREAM and RS/SS emission

This commit is a follow-up of the previous one which defines function
qcc_build_frms(). This function implements looping over qcc send_list,
to both encode and send individually any STOP_SENDING and RESET_STREAM,
but also encode STREAM frames as a preparator step. STREAM frames were
then sent as a list outside of qcc_build_frms() via qcc_send_frames().

Extract STOP_SENDING/RESET_STREAM encoding and emission step into a new
function qcc_emit_rs_ss(). The code is thus cleaner. In particular it
highlights that an error during STOP_SENDING/RESET_STREAM emission stage
is fatal and prevent any STREAM frames processing.

This should be backported up to 3.1.
src/mux_quic.c