stefanprodan / WebApiThrottle

ASP.NET Web API rate limiter for IIS and Owin hosting
MIT License
1.28k stars 275 forks source link

Arithmetic operation resulted in an overflow #129

Open esp0 opened 5 years ago

esp0 commented 5 years ago

On a high traffic site, all visitors suddenly got this message:

"   Arithmetic operation resulted in an overflow:
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n   
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n   
at WebApiThrottle.ThrottlingCore.ApplyRules(RequestIdentity identity, TimeSpan timeSpan, RateLimitPeriod rateLimitPeriod, Int64& rateLimit)\r\n   
at WebApiThrottle.ThrottlingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   
at System.Web.Http.HttpServer.<SendAsync>d__0.MoveNext()"

The problem disappeared after a restart. Is this a bug?