]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-quic: implement attach for new streams on backend side
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 Jun 2025 07:59:50 +0000 (09:59 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 Jun 2025 15:25:27 +0000 (17:25 +0200)
commit4527a2912bf8d33d3f1e26f3dd3cffffce474abd
treed5539b1156a2010256c31e15eb20331d9f816a53
parent81cfaab6b465d2f609d90c4bcbd72f559432fd97
MEDIUM: mux-quic: implement attach for new streams on backend side

Implement attach and avail_streams mux-ops callbacks, which are used on
backend side for connection reuse.

Attach operation is used to initiate new streams on the connection
outside of the first one. It simply relies on qcc_init_stream_local() to
instantiate a new QCS instance, which is immediately linked to its
stream data layer.

Outside of attach, it is also necessary to implement avail_streams so
that the stream layer will try to initiate connection reuse. This method
reports the number of bidirectional streams which can still be opened
for the QUIC connection. It depends directly to the flow-control value
advertised by the peer. Thus, this ensures that attach won't cause any
flow control violation.
src/mux_quic.c