[jbossweb-commits] JBossWeb SVN: r214 - branches/2.0.x/src/share/classes/org/apache/tomcat/util/net.
jbossweb-commits at lists.jboss.org
jbossweb-commits at lists.jboss.org
Wed Aug 8 13:10:08 EDT 2007
Author: remy.maucherat at jboss.com
Date: 2007-08-08 13:10:08 -0400 (Wed, 08 Aug 2007)
New Revision: 214
Modified:
branches/2.0.x/src/share/classes/org/apache/tomcat/util/net/AprEndpoint.java
Log:
- Start accept thread last.
Modified: branches/2.0.x/src/share/classes/org/apache/tomcat/util/net/AprEndpoint.java
===================================================================
--- branches/2.0.x/src/share/classes/org/apache/tomcat/util/net/AprEndpoint.java 2007-08-04 17:00:23 UTC (rev 213)
+++ branches/2.0.x/src/share/classes/org/apache/tomcat/util/net/AprEndpoint.java 2007-08-08 17:10:08 UTC (rev 214)
@@ -725,14 +725,6 @@
workers = new WorkerStack(maxThreads);
}
- // 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();
- }
-
// Start poller threads
pollers = new Poller[pollerThreadCount];
for (int i = 0; i < pollerThreadCount; i++) {
@@ -767,6 +759,15 @@
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();
+ }
+
}
}
More information about the jbossweb-commits
mailing list