racker/eom — pull request #34 by tuxerman (2014-06-06 17:30:15+00:00)
Title: Ratelimiter patch

governor.py: Modified the rate limiting algorithm so that it guarantees request-limiting to requests per second (if required, we can change this to different units like requests per hour, etc.) and removed a need for the server to force a delay upon itself or the client.

test_governor.py: Added the ability to use a real redis instance from the pool for testing. The new rate limiter currently causes two unit tests to fail while using the fake redis instance, but upon using a real redis instance, all tests pass. (Functional test will be updated and uploaded soon).