Skip to content

Commit

Permalink
After rate limit reached stop processing
Browse files Browse the repository at this point in the history
Once a rate limit is reached the remaining rates should not be evaluated. This restores the behaviour that is described in the readme,  regarding stacked requests.
  • Loading branch information
georgehemmings committed Apr 15, 2015
1 parent 537e111 commit cd40599
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MvcThrottle/ThrottlingFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ public override void OnActionExecuting(ActionExecutingContext filterContext)
string.Format(message, rateLimit, rateLimitPeriod),
QuotaExceededResponseCode,
requestId);

return;
}
}
}
Expand Down

0 comments on commit cd40599

Please sign in to comment.