Skip to content

Conversation

yankewei
Copy link

@yankewei yankewei commented Jul 9, 2025

Problem

Response-based limiters (created with Limit::custom()) were incrementing hit counters during resets, causing inaccurate rate limiting.

Fix

Skip hit increment for response-based limiters during reset operations.

@Sammyjo20 Could you please review this fix? This bug prevents us from using the response-based limiter.

@yankewei
Copy link
Author

@Sammyjo20 Hi, just checking in on this PR — is there anything I can do to help move it forward?

@yankewei
Copy link
Author

@Sammyjo20, Follow up on this PR when you have a moment. Could you take a look?

@yankewei
Copy link
Author

yankewei commented Sep 4, 2025

@Sammyjo20 Regarding this PR, do you have any suggestions? This bug blocks our way of handling rate limits using the response handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant