bneradt opened a new pull request, #14056:
URL: https://github.com/apache/trafficserver/pull/14056

   Throttler instances back the throttled diagnostic messages and are
   called from any thread, but the suppressed-message count was a plain
   integer. Concurrent increments were a data race, and the reset after
   an allowed message could drop increments from other threads, so the
   "suppressed N messages" figures were unreliable.
   
   This patch makes the count atomic. Suppressed calls increment it
   atomically, and the allowed caller or reset_counter() reads and clears
   it with a single exchange, so no increment is lost between the read
   and the reset. A new unit test checks the count from concurrent
   callers.
   
   🤖 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]

Reply via email to