canvas-lms/app/middleware
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
..
request_throttle bound request throttle leaking _before_ adding cost of current request 2017-09-19 22:39:09 +00:00
load_account.rb don't run reloader from trap context 2017-09-13 20:08:42 +00:00
prevent_non_multipart_parse.rb da licença part 18 2017-04-27 21:51:25 +00:00
request_context_generator.rb da licença part 18 2017-04-27 21:51:25 +00:00
request_context_session.rb da licença part 18 2017-04-27 21:51:25 +00:00
request_throttle.rb add throttle headers always 2017-09-13 04:37:13 +00:00
sessions_timeout.rb drop rails 4.2 2017-06-27 15:29:51 +00:00