]> git.kaiwu.me - haproxy.git/commit
MINOR: mux_quic: use dynamic Tx streams buffers for QMux
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Apr 2026 12:51:09 +0000 (14:51 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 24 Apr 2026 07:33:04 +0000 (09:33 +0200)
commit265e8939214b6bec7d77a868d832d17ab671207c
tree7c24f2e0c33a030f555e925a633800974582dbae
parentd98afae0c6fd09c32d06d4c69bc57183d86ca0bc
MINOR: mux_quic: use dynamic Tx streams buffers for QMux

Improve QMux memory usage at the QCS level in accordance with the
haproxy model. The tx buffer is now allocated only when used and
released as soon as it is empty.

This change requires to extend qcc_get_stream_txbuf() for QMux. Code
part related to qc_stream_desc is protected via conn_is_quic(). A
dedicated QMux bloc is added. Similarly to QUIC, a small buf can be
allocated first.

This also requires to adapt qcc_realloc_stream_txbuf() in a similar
fashion.
src/mux_quic.c