You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2006/07/03 18:08:15 UTC

svn commit: r418794 - in /tomcat/container/tc5.5.x/modules/groupcom: VERSION src/share/org/apache/catalina/tribes/transport/ThreadPool.java src/share/org/apache/catalina/tribes/transport/nio/NioReplicationThread.java

Author: fhanik
Date: Mon Jul  3 09:08:13 2006
New Revision: 418794

URL: http://svn.apache.org/viewvc?rev=418794&view=rev
Log:
Temporary workaround for threading problem, go directly to max threads

Modified:
    tomcat/container/tc5.5.x/modules/groupcom/VERSION
    tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/transport/ThreadPool.java
    tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/transport/nio/NioReplicationThread.java

Modified: tomcat/container/tc5.5.x/modules/groupcom/VERSION
URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/VERSION?rev=418794&r1=418793&r2=418794&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/VERSION (original)
+++ tomcat/container/tc5.5.x/modules/groupcom/VERSION Mon Jul  3 09:08:13 2006
@@ -1,3 +1,5 @@
+0.9.4.4
+  - temporary work around for the threading problem, go directly to max threads
 0.9.4.3
   - minor fixes to threading and test cases
 0.9.4.2

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/transport/ThreadPool.java
URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/transport/ThreadPool.java?rev=418794&r1=418793&r2=418794&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/transport/ThreadPool.java (original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/transport/ThreadPool.java Mon Jul  3 09:08:13 2006
@@ -54,7 +54,8 @@
         this.maxThreads = maxThreads;
         this.minThreads = minThreads;
         this.creator = creator;
-        for (int i = 0; i < minThreads; i++) {
+        //for (int i = 0; i < minThreads; i++) {
+        for (int i = 0; i < maxThreads; i++) { //temporary fix for thread hand off problem
             WorkerThread thread = creator.getWorkerThread();
             setupThread(thread);
             idle.add (thread);

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/transport/nio/NioReplicationThread.java
URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/transport/nio/NioReplicationThread.java?rev=418794&r1=418793&r2=418794&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/transport/nio/NioReplicationThread.java (original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/transport/nio/NioReplicationThread.java Mon Jul  3 09:08:13 2006
@@ -57,8 +57,7 @@
     }
 
     // loop forever waiting for work to do
-    public synchronized void run()
-    {
+    public synchronized void run() { 
         this.notify();
         if ( (getOptions() & OPTION_DIRECT_BUFFER) == OPTION_DIRECT_BUFFER ) {
             buffer = ByteBuffer.allocateDirect(getRxBufSize());



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