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:
srowen 2012-04-06 07:33:00 +00:00
parent 2cd86d8001
commit 41c4e34063
3 changed files with 6 additions and 4 deletions

View file

@ -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
}
}

View file

@ -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;

View file

@ -32,7 +32,7 @@
<filter-mapping>
<filter-name>DoSFilter</filter-name>
<url-pattern>/*</url-pattern>
<url-pattern>/decode</url-pattern>
</filter-mapping>
<listener>