-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x-pack/filebeat/input/httpjson/rate_limiter.go: Rate limit evaluation only happens on 429 responses #36207
Comments
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
Current behaviorThe code above will: Run the request and return if its successful or fails without If it the response has The calling code will: Drain the request body so the connection can be released, log failures and return the response or error. Proposed behavior
|
The rate limiter only evaluates the rate limit logic if a 429 response is found:
this introduces several issues:
1- Some APIs do not honor the 429 convention and in that case is impossible to trigger a rate limiting event
2- the
early_limit
option is never evaluated prior to the 429 status, making it useless for its initial intentionThe text was updated successfully, but these errors were encountered: