RequestRateThrottleFilter may not work as expected with hits=1 or hits=2

Description

From eric.cit...@gmail.com on January 01, 2014 13:11:08

As stated in my comment ( https://code.google.com/p/owasp-esapi-java/source/browse/trunk/src/main/java/org/owasp/esapi/filters/RequestRateThrottleFilter.java?spec=svn1940&r=1940ESAPILEG-86 ), RequestRateThrottleFilter may not work as expected when configured with hits=1 or hits=2.

I would like to suggest another implementation (see the attached patch).

Thanks,
Eric.

Attachment: RequestRateThrottleFilter.patch

Original issue: http://code.google.com/p/owasp-esapi-java/issues/detail?id=317

Status

Assignee

Unassigned

Reporter

Max Gelman

Priority

Configure