rack-throttle
rack-throttle copied to clipboard
Rack middleware for rate-limiting incoming HTTP requests.
This is a really large conceptual PR so I'm going to let this sit for a while to gather feedback! RackAttack has much more active maintenance & is more mature....
Fixes a comma missing
Pattern matching bug fix for rules based paths. If the path has extra slashes then it is ignored by the rules path_matches? method but the extra slashes are stripped by...
**Describe the bug** This is a minor bug I noticed today, and it likely won't affect many people. When running `solargraph bundle` locally, I got an error while building the...
Hello All! I wanted to open discussion to see if RackAttack could serve the wonderful people using this lovely gem a bit better. https://github.com/kickstarter/rack-attack It seems to hame more features/functionality/community...
When throttling, it might be more accurate to return the following status code: > **429** Too Many Requests > > The user has sent too many requests in a given...
gem 'rack-throttle', '~> 0.4.2' when i run i am getting this error, can you please provide solution for this /data/project/vendor/bundle/ruby/2.2.0/gems/rack-throttle-0.4.2/lib/rack/throttle/time_window.rb:3:in `': uninitialized constant Rack::Throttle::Limiter (NameError) from /data/project/vendor/bundle/ruby/2.2.0/gems/rack-throttle-0.4.2/lib/rack/throttle/time_window.rb:1:in `' from /data/project/vendor/bundle/ruby/2.2.0/gems/rack-throttle-0.4.2/lib/rack/throttle/time_window.rb:1:in...
I may be missing something but it seems strange that ``` def allowed?(request) t1 = request_start_time(request) t0 = cache_get(key = cache_key(request)) rescue nil allowed = !t0 || (dt = t1...
I'm seeing what looks like a concurrency issue in a custom Limiter based on rack-throttle. But I'm not 100% sure, so thought I'd ask issue here. Specifically, the retrieval and...
It seems like the per-second / per-minute / etc. keys that `rack-throttle` creates in Redis are permanent. We run a high traffic site, which means that we're going to end...