mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Fix problem blocking access to javadoc
git-svn-id: https://zxing.googlecode.com/svn/trunk@2249 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
2cd86d8001
commit
41c4e34063
|
@ -211,6 +211,8 @@ public final class DecodeServlet extends HttpServlet {
|
|||
}
|
||||
} catch (IOException ioe) {
|
||||
// continue
|
||||
} catch (IndexOutOfBoundsException ioobe) {
|
||||
// sun.net.www.http.ChunkedInputStream.read is throwing this, continue
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -42,9 +42,9 @@ import java.util.TimerTask;
|
|||
*/
|
||||
public final class DoSFilter implements Filter {
|
||||
|
||||
private static final int MAX_ACCESSES_PER_IP_PER_TIME = 10;
|
||||
private static final long MAX_ACCESS_INTERVAL_MSEC = 10L * 1000L;
|
||||
private static final long UNBAN_INTERVAL_MSEC = 60L * 60L * 1000L;
|
||||
private static final int MAX_ACCESSES_PER_IP_PER_TIME = 100;
|
||||
private static final long MAX_ACCESS_INTERVAL_MSEC = 60L * 1000L;
|
||||
private static final long UNBAN_INTERVAL_MSEC = 15L * 60L * 1000L;
|
||||
private static final String BAD_IPS_INIT_PARAM = "bad.ips";
|
||||
|
||||
private final IPTrie numRecentAccesses;
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<filter-mapping>
|
||||
<filter-name>DoSFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
<url-pattern>/decode</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener>
|
||||
|
|
Loading…
Reference in a new issue