]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: quic: move transport fields from qcs to qc_conn_stream
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 29 Mar 2022 13:15:54 +0000 (15:15 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 30 Mar 2022 14:19:48 +0000 (16:19 +0200)
commit7272cd76fc2db0d8778d13c3092e5f8303a49c07
tree07dafe727ff54ce6478aeffbf0eec9c6fcaba0f3
parent5c3859c50948a19d3b3a375974c74e7e73652f94
MEDIUM: quic: move transport fields from qcs to qc_conn_stream

Move the xprt-buf and ack related fields from qcs to the qc_stream_desc
structure. In exchange, qcs has a pointer to the low-level stream. For
each new qcs, a qc_stream_desc is automatically allocated.

This simplify the transport layer by removing qcs/mux manipulation
during ACK frame parsing. An additional check is done to not notify the
MUX on sending if the stream is already released : this case may now
happen on retransmission.

To complete this change, the quic_stream frame now references the
quic_stream instance instead of a qcs.
include/haproxy/mux_quic-t.h
include/haproxy/quic_frame-t.h
src/mux_quic.c
src/xprt_quic.c