]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: ensure quic_conn is never removed on thread affinity rebind
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 1 Jul 2024 13:36:33 +0000 (15:36 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 Jul 2024 13:02:40 +0000 (15:02 +0200)
commitbfdf145859d80dc3357f6f67e96c8cbbe8280804
tree43728ca7c71cd7a435d25a9fa1db19e59cabdf14
parenta4240fb26f814223c19b3758576e04b029f46e69
MINOR: quic: ensure quic_conn is never removed on thread affinity rebind

On accept, quic_conn instance is migrated from its original thread to a
new one. This operation is conducted in two steps, on the original than
the new thread instance. During the interval, quic_conn is artificially
rendered inactive. It must never be accessed nor removed until migration
is completed via qc_finalize_affinity_rebind(). This new BUG_ON() will
enforce that removal is never conducted until migration is completed.
src/quic_conn.c