]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: quic: ensure quic-conn survives to the MUX
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 6 Apr 2022 15:22:12 +0000 (17:22 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 Apr 2022 08:10:22 +0000 (10:10 +0200)
commitdb71e3bd09d6f0a64a9615a0fb6e7c477e82e7c7
tree1e13b39169f738037ed77f76175995876e08d81f
parent59bf255806cfee4cc62c85509550af88dff17460
BUG/MEDIUM: quic: ensure quic-conn survives to the MUX

Rationalize the lifetime of the quic-conn regarding with the MUX. The
quic-conn must not be freed if the MUX is still allocated.

This simplify the MUX code when accessing the quic-conn and removed
possible segfaults.

To implement this, if the quic-conn timer expired, the quic-conn is
released only if the MUX is not allocated. Else, the quic-conn is
flagged with QUIC_FL_CONN_EXP_TIMER. The MUX is then responsible
to call quic_close() which will free the flagged quic-conn.
include/haproxy/xprt_quic-t.h
src/xprt_quic.c