MINOR: mux-quic: extract code to build STREAM frames list
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Dec 2024 16:53:29 +0000 (17:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 Jan 2025 10:21:45 +0000 (11:21 +0100)
commit3cd6b7d1033a42f27182861efd829d6c15b0623f
tree53b75869f2695f3c59be22bc18263ccb2fa1dc6b
parent1cc289cd6d48d8fd33d2628a48d8259b9f84a8f0
MINOR: mux-quic: extract code to build STREAM frames list

Extracts code responsible to generate STREAM, RESET_STREAM and
STOP_SENDING frames for each qcs instances registered in qcc send_list.
It is moved from qcc_io_send() to its owned new function
qcc_build_frms().

This commit does not bring functional change. It is a preparatory step
to adapt QUIC MUX send mechanism to allow reusing of qcc frms list
accross qcc_io_send() invokation.

As a side change, qcc_tx_frms_free() is renamed to qcc_clear_frms().
This better highlights its relationship with qcc_build_frms().

This should be bkacported up to 3.1.

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