[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/socket ...
Ron Sigal
ron_sigal at yahoo.com
Thu Nov 2 23:01:25 EST 2006
User: rsigal
Date: 06/11/02 23:01:25
Modified: src/main/org/jboss/remoting/transport/socket
MicroSocketClientInvoker.java
Log:
JBREM-625: Added two lines to decrement usePooled when a socket is discarded.
Revision Changes Path
1.17 +4 -1 JBossRemoting/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MicroSocketClientInvoker.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- MicroSocketClientInvoker.java 26 Sep 2006 02:27:52 -0000 1.16
+++ MicroSocketClientInvoker.java 3 Nov 2006 04:01:25 -0000 1.17
@@ -31,7 +31,7 @@
*
* @author <a href="mailto:jhaynie at vocalocity.net">Jeff Haynie</a>
* @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
- * @version $Revision: 1.16 $
+ * @version $Revision: 1.17 $
*/
public class MicroSocketClientInvoker extends RemoteClientInvoker
{
@@ -378,6 +378,7 @@
try
{
socketWrapper.close();
+ usedPooled--;
}
catch (Exception ex)
{
@@ -401,6 +402,7 @@
try
{
socketWrapper.close();
+ usedPooled--;
}
catch (Exception ignored)
{
@@ -712,6 +714,7 @@
socket.setReuseAddress(reuseAddress);
pooled = createClientSocket(socket, address.timeout, getLocator().getParameters());
usedPooled++;
+ log.info("usedPool: " + usedPooled);
break;
}
}
More information about the jboss-cvs-commits
mailing list