Repository navigation
fix(gitlab): stop deriving the client rate limit from response headers - #10878
Conversation
The GitLab client configures its limiter from the first response's Ratelimit-Limit header, read as requests per minute. gitlab.com now also answers unauthenticated calls from an unauthenticated_traffic_per_ip throttle reporting a limit of 1, which the client turns into one request every ninety seconds. Any second request under the 30 seconds search timeout, such as a second page of tags or releases, then failed with "rate: Wait(n=1) would exceed context deadline". The client limiter is now disabled and rate limiting is left to the server: 429 responses are still retried with backoff. Signed-off-by: Olblak <me@olblak.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
The GitLab client configures its limiter from the first response's Ratelimit-Limit header, read as requests per minute. gitlab.com now also answers unauthenticated calls from an unauthenticated_traffic_per_ip throttle reporting a limit of 1, which the client turns into one request every ninety seconds. Any second request under the 30 seconds search timeout, such as a second page of tags or releases, then failed with "rate: Wait(n=1) would exceed context deadline".
The client limiter is now disabled and rate limiting is left to the server: 429 responses are still retried with backoff.
Fix #XXX
Test
To test this pull request, you can run the following commands:
Additional Information
Checklist
Tradeoff
Potential improvement
Summary by CodeRabbit