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)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 Jan 2025 10:21:48 +0000 (11:21 +0100)
commit3a00193b242f41c7d3070d9b488f4ff28bed4722
tree4acfc668c1096c9f91956aff3712d854780e48f6
parent3cd6b7d1033a42f27182861efd829d6c15b0623f
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.

(cherry picked from commit 9ecc1a8e578c67e8653ba7d1e9c5441f5ad2eca8)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/mux_quic.c