Author: ron.sigal(a)jboss.com
Date: 2011-05-31 23:37:46 -0400 (Tue, 31 May 2011)
New Revision: 6376
Modified:
remoting2/branches/2.2/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.2/src/main/org/jboss/remoting/transport/socket/SocketServerInvoker.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/socket/SocketServerInvoker.java 2011-06-01
03:36:04 UTC (rev 6375)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/socket/SocketServerInvoker.java 2011-06-01
03:37:46 UTC (rev 6376)
@@ -611,7 +611,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")); }
}
Show replies by date