Repository navigation
fix(auth): reclaim expired nonces behind unexpired ones - #464
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
biggest-littlest
left a comment
There was a problem hiding this comment.
Reviewed by orchestrator: eviction scans the full list with next captured before removal; test covers an expired entry behind an unexpired one at capacity.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Reviewed by orchestrator: eviction scans the full list with next captured before removal; test covers an expired entry behind an unexpired one at capacity.
CodeRabbit pass 2 on #462: after a backward wall step, insertion order stops matching expiry order, and the eviction loop stopped at the first unexpired entry. At capacity, that rejected valid requests with nonce-capacity until the clock caught up. Eviction now scans the whole list, which is bounded by capacity.
Checked:
go test -raceon auth (nonce.go at 100%) and a new test for an expired entry behind an unexpired one.