]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: quic: upgrade rdlock to wrlock for ODCID removal
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 22 Dec 2021 10:29:05 +0000 (11:29 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Dec 2021 14:51:00 +0000 (15:51 +0100)
commit250ac42754547ac86b9e947cc772e92aa5f3e22e
tree1035f9c1eb32cc5c1fd171a83362785ea24377a1
parentd6b166787c9efeff8637e98f0bafe6b104666a37
BUG/MINOR: quic: upgrade rdlock to wrlock for ODCID removal

When a quic_conn is found in the DCID tree, it can be removed from the
first ODCID tree. However, this operation must absolutely be run under a
write-lock to avoid race condition. To avoid to use the lock too
frequently, node.leaf_p is checked. This value is set to NULL after
ebmb_delete.
src/xprt_quic.c