tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r992199 - /tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
Date Fri, 03 Sep 2010 04:26:23 GMT
Author: mturk
Date: Fri Sep  3 04:26:23 2010
New Revision: 992199

URL: http://svn.apache.org/viewvc?rev=992199&view=rev
Log:
Store the Acceptor instances in the array like we do for other threads

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java?rev=992199&r1=992198&r2=992199&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java Fri Sep  3 04:26:23 2010
@@ -92,6 +92,9 @@ public class AprEndpoint extends Abstrac
     protected long sslContext = 0;
 
 
+    private Acceptor acceptors[] = null;
+
+
     // ------------------------------------------------------------- Properties
 
 
@@ -570,8 +573,10 @@ public class AprEndpoint extends Abstrac
             }
 
             // Start acceptor threads
+            acceptors = new Acceptor[acceptorThreadCount];
             for (int i = 0; i < acceptorThreadCount; i++) {
-                Thread acceptorThread = new Thread(new Acceptor(), getName() + "-Acceptor-"
+ i);
+                acceptors[i] = new Acceptor();
+                Thread acceptorThread = new Thread(acceptors[i], getName() + "-Acceptor-"
+ i);
                 acceptorThread.setPriority(threadPriority);
                 acceptorThread.setDaemon(getDaemon());
                 acceptorThread.start();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message