You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Slot waits: an account can be booked twice while a re-ask on another account is unwritten #117
Problem: while a thread's new slot request is granted but not yet written, the slot it already held is hidden from every count, including its account's limit. If the new request is for a different account (or none), another thread can be granted the old slot's account in the same sweep. If the new request is then cancelled before it is written, the old slot comes back and that account is booked twice. Both threads may be refused when they delegate, until one hold ends (at most reserveSeconds).
Fix idea: while the new request is pending, keep counting the old hold against its own account limit (not twice against the machine limit).
Test: the reviewer's failing test (re-ask on another account, a second thread granted the first account, the re-ask cancelled: the account must not be over its limit).
Activity
fix(waits): monotonic judge deadlines, early messages, hidden-hold co…