canvas-lms/app/middleware/request_throttle
Cody Cutrer 49759eabc2 bound request throttle leaking _before_ adding cost of current request
fixes CNVS-39263

otherwise they may never get dinged for the cost of the current request

test plan:
 * have redis configured
 * watch the response headers on several requests
 * the X-Rate-Limit-Remaining should never be exactly equal to the
   high water mark (defaults to 600); it should be slightly below

Change-Id: I89e85f873b405e0bd93a6e89730dd504ca934104
Reviewed-on: https://gerrit.instructure.com/125866
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2017-09-19 22:39:09 +00:00
..
increment_bucket.lua bound request throttle leaking _before_ adding cost of current request 2017-09-19 22:39:09 +00:00