mirror of
https://github.com/versity/versitygw.git
synced 2026-09-22 16:04:15 +00:00
Checking the publication backlog and taking the admission credit were separate steps, so concurrent registrations could each observe the same headroom and overshoot the session quota together. Both now share one critical section, and a concurrent test pins the behavior: sixteen registrations against a limit of eight with one record pending admit exactly seven. An admission refusal now publishes the same SlowDown error the wire response carries, so operational accounting matches what the client saw, and unregister releases the credit an unfinalized registration was holding so the admission budget cannot leak.