]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: fix subscribe operation
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 28 Sep 2022 13:15:51 +0000 (15:15 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 26 Oct 2022 16:18:26 +0000 (18:18 +0200)
commitbbb1c68508ceebb98ac4234c906a65a42596e6ea
treeaea0dbc5e571dd4bf0c2b22070948c4a9706195f
parent0aba11e9e72c6531e131f740135f9d47d2060ca7
BUG/MINOR: quic: fix subscribe operation

Subscribing was not properly designed between quic-conn and quic MUX
layers. Align this as with in other haproxy components : <subs> field is
moved from the MUX to the quic-conn structure. All mention of qcc MUX is
cleaned up in quic_conn_subscribe()/quic_conn_unsubscribe().

Thanks to this change, ACK reception notification has been simplified.
It's now unnecessary to check for the MUX existence before waking it.
Instead, if <subs> quic-conn field is set, just wake-up the upper layer
tasklet without mentionning MUX. This should probably be extended to
other part in quic-conn code.

This should be backported up to 2.6.
include/haproxy/mux_quic-t.h
include/haproxy/quic_conn-t.h
src/mux_quic.c
src/quic_conn.c
src/xprt_quic.c