Author: trustin
Date: 2009-01-05 02:06:49 -0500 (Mon, 05 Jan 2009)
New Revision: 4785
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/SocketServerInvoker.java
Log:
Fixed issue: JBREM-992 Can't restart a Connector that uses SocketServerInvoker
* Made sure maxPoolSize is set to the default value if unspecified
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 2009-01-05
07:01:20 UTC (rev 4784)
+++
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/SocketServerInvoker.java 2009-01-05
07:06:49 UTC (rev 4785)
@@ -228,6 +228,12 @@
{
log.debug(this + " starting");
+ if(maxPoolSize <= 0)
+ {
+ //need to reset to default
+ maxPoolSize = MAX_POOL_SIZE_DEFAULT;
+ }
+
clientpool = new LRUPool(2, maxPoolSize);
clientpool.create();
threadpool = new LinkedList();
Show replies by date