Author: ron.sigal(a)jboss.com
Date: 2011-02-28 17:03:19 -0500 (Mon, 28 Feb 2011)
New Revision: 6264
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/bisocket/Bisocket.java
Log:
JBREM-1275: Added dosMaxThreads and dosTimeout.
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/bisocket/Bisocket.java
===================================================================
---
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/bisocket/Bisocket.java 2011-02-28
22:02:42 UTC (rev 6263)
+++
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/bisocket/Bisocket.java 2011-02-28
22:03:19 UTC (rev 6264)
@@ -78,4 +78,13 @@
public static final String SECONDARY_CONNECT_PORT = "secondaryConnectPort";
public static final String SECONDARY_BIND_PORTS = "secondaryBindPorts";
public static final String SECONDARY_CONNECT_PORTS =
"secondaryConnectPorts";
+
+ /**
+ * 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;
}