Author: ron.sigal(a)jboss.com
Date: 2011-02-28 17:02:42 -0500 (Mon, 28 Feb 2011)
New Revision: 6263
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/bisocket/Bisocket.java
Log:
JBREM-1275: Added dosMaxThreads and dosTimeout.
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/bisocket/Bisocket.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/bisocket/Bisocket.java 2011-02-28
22:01:15 UTC (rev 6262)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/bisocket/Bisocket.java 2011-02-28
22:02:42 UTC (rev 6263)
@@ -53,7 +53,7 @@
*/
public static final String PING_WINDOW_FACTOR = "pingWindowFactor";
public static final int PING_WINDOW_FACTOR_DEFAULT = 2;
-
+
/**
* Configuration key and default value for number of retries
* BisocketServerInvoker.ControlConnectionThread and
@@ -76,4 +76,13 @@
*/
public static final String SECONDARY_BIND_PORT = "secondaryBindPort";
public static final String SECONDARY_CONNECT_PORT = "secondaryConnectPort";
+
+ /**
+ * Configuration keys and default valuesfor parameters related to DOS attack
+ * on BisocketServerInvoker.SecondaryServerSocketThread
+ */
+ public static final String DOS_MAX_THREADS = "dosMaxThreads";
+ public static final String DOS_TIMEOUT = "dosTimeout";
+ public static final int DOS_MAX_THREADS_DEFAULT = 50;
+ public static final int DOS_TIMEOUT_DEFAULT = 60;
}