bneradt opened a new pull request, #14053: URL: https://github.com/apache/trafficserver/pull/14053
The BRAVO shared mutex fast path uses relaxed and acquire/release ordering for a store-then-load handshake between readers and writers. That handshake needs sequential consistency: without it a reader can see the old read bias while the writer sees the reader's slot free, and both enter the critical section. Separately, the BoringSSL certificate compression cache keeps one entry per SSL_CTX and algorithm, yet the compressed Certificate message carries the OCSP staple and SCT list. A handshake that picked up the old staple could publish it into the slot an OCSP refresh had just cleared, and clients that did or did not request a staple shared one cached message. This patch makes the BRAVO reader slot claim, read-bias recheck, revocation store and slot scan seq_cst, with release on reader unlock. It also keys the cache by the exact uncompressed message, keeping a few variants per algorithm that are only filled from empty, so a stale or mismatched entry is never served. This patch also makes the Throttler suppressed-message count atomic, since every thread increments it, and stops DbgCtl from destroying a locked mutex when it loses the registry creation race. New unit tests cover the cache variants and concurrent Throttler counting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
