Author: galder.zamarreno(a)jboss.com
Date: 2009-01-21 05:22:10 -0500 (Wed, 21 Jan 2009)
New Revision: 909
Modified:
branches/JBOSSWEB_2_0_0_GA_CP05_JBPAPP-1617/src/share/classes/org/apache/tomcat/util/net/AprEndpoint.java
Log:
[JBPAPP-1617] Backported revision 214 for AprEndpoint to avoid race condition in
APREndpoint on non-linux machines.
Modified:
branches/JBOSSWEB_2_0_0_GA_CP05_JBPAPP-1617/src/share/classes/org/apache/tomcat/util/net/AprEndpoint.java
===================================================================
---
branches/JBOSSWEB_2_0_0_GA_CP05_JBPAPP-1617/src/share/classes/org/apache/tomcat/util/net/AprEndpoint.java 2009-01-20
11:16:42 UTC (rev 908)
+++
branches/JBOSSWEB_2_0_0_GA_CP05_JBPAPP-1617/src/share/classes/org/apache/tomcat/util/net/AprEndpoint.java 2009-01-21
10:22:10 UTC (rev 909)
@@ -52,6 +52,7 @@
*
* @author Mladen Turk
* @author Remy Maucherat
+ * @author <a href="mailto:galder.zamarreno@jboss.com">Galder
Zamarreno</a>
*/
public class AprEndpoint {
@@ -767,6 +768,14 @@
sendfileThread.start();
}
}
+
+ // Start acceptor threads
+ for (int i = 0; i < acceptorThreadCount; i++) {
+ Thread acceptorThread = new Thread(new Acceptor(), getName() +
"-Acceptor-" + i);
+ acceptorThread.setPriority(threadPriority);
+ acceptorThread.setDaemon(daemon);
+ acceptorThread.start();
+ }
}
}
Show replies by date