Author: remy.maucherat(a)jboss.com
Date: 2012-10-04 09:21:08 -0400 (Thu, 04 Oct 2012)
New Revision: 2101
Modified:
branches/7.2.x/pom.xml
branches/7.2.x/src/main/java/org/apache/tomcat/util/net/AbstractEndpoint.java
branches/7.2.x/src/main/java/org/apache/tomcat/util/net/Constants.java
Log:
Adjust default for reuseAddress, with a system property (not trying to avoid setting it
yet).
Modified: branches/7.2.x/pom.xml
===================================================================
(Binary files differ)
Modified: branches/7.2.x/src/main/java/org/apache/tomcat/util/net/AbstractEndpoint.java
===================================================================
---
branches/7.2.x/src/main/java/org/apache/tomcat/util/net/AbstractEndpoint.java 2012-10-03
11:15:25 UTC (rev 2100)
+++
branches/7.2.x/src/main/java/org/apache/tomcat/util/net/AbstractEndpoint.java 2012-10-04
13:21:08 UTC (rev 2101)
@@ -60,7 +60,7 @@
/**
*
*/
- protected boolean reuseAddress = false;
+ protected boolean reuseAddress = Constants.REUSE_ADDRESS;
/**
* Current worker threads busy count.
Modified: branches/7.2.x/src/main/java/org/apache/tomcat/util/net/Constants.java
===================================================================
--- branches/7.2.x/src/main/java/org/apache/tomcat/util/net/Constants.java 2012-10-03
11:15:25 UTC (rev 2100)
+++ branches/7.2.x/src/main/java/org/apache/tomcat/util/net/Constants.java 2012-10-04
13:21:08 UTC (rev 2101)
@@ -30,6 +30,9 @@
public static final boolean WAIT_FOR_THREAD =
Boolean.valueOf(System.getProperty("org.apache.tomcat.util.net.WAIT_FOR_THREAD",
"false")).booleanValue();
+ public static final boolean REUSE_ADDRESS =
+
Boolean.valueOf(System.getProperty("org.apache.tomcat.util.net.REUSE_ADDRESS",
"true")).booleanValue();
+
/**
* The Request attribute key for the cipher suite.
*/
Show replies by date