]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: simplify the removal from ODCID tree
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 16 Dec 2021 15:15:18 +0000 (16:15 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Dec 2021 09:59:36 +0000 (10:59 +0100)
commitdbef985b745886f7a06612ee717dab192c52fabe
treea2dff42147316807fc93d58017985141801f4525
parent8efe032bba9a6d33145c1f9e192631d90b1c3222
MINOR: quic: simplify the removal from ODCID tree

With the DCID refactoring, the locking is more centralized. It is
possible to simplify the code for removal of a quic_conn from the ODCID
tree.

This operation can be conducted as soon as the connection has been
retrieved from the DCID tree, meaning that the peer now uses the final
DCID. Remove the bit to flag a connection for removal and just uses
ebmb_delete() on each sucessful lookup on the DCID tree. If the
quic_conn has already been removed, it is just a noop thanks to
eb_delete() implementation.
include/haproxy/xprt_quic-t.h
src/xprt_quic.c