[jboss-remoting-commits] JBoss Remoting SVN: r6377 - remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Tue May 31 23:40:26 EDT 2011


Author: ron.sigal at jboss.com
Date: 2011-05-31 23:40:26 -0400 (Tue, 31 May 2011)
New Revision: 6377

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/SocketServerInvoker.java
Log:
JBREM-1293: Treat threadpool as a stack, removing last element when reusing a ServerThread.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/SocketServerInvoker.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/SocketServerInvoker.java	2011-06-01 03:37:46 UTC (rev 6376)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/SocketServerInvoker.java	2011-06-01 03:40:26 UTC (rev 6377)
@@ -791,7 +791,7 @@
 
             if(threadpool.size() > 0)
             {
-               worker = (ServerThread)threadpool.removeFirst();
+               worker = (ServerThread)threadpool.removeLast();
                if(trace) { log.trace(this + (worker == null ? " found NO threads in threadpool"
                                                             : " got " + worker + " from threadpool")); }
                



More information about the jboss-remoting-commits mailing list