[jboss-remoting-commits] JBoss Remoting SVN: r3527 - 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
Wed Feb 27 19:16:48 EST 2008


Author: ron.sigal at jboss.com
Date: 2008-02-27 19:16:48 -0500 (Wed, 27 Feb 2008)
New Revision: 3527

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java
Log:
JBREM-786: If numberOfCallRetries == 1, will not create new socket on last attempt.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java	2008-02-28 00:15:17 UTC (rev 3526)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java	2008-02-28 00:16:48 UTC (rev 3527)
@@ -634,7 +634,9 @@
 
          try
          {
-            boolean tryPool = retryCount < (numberOfCallRetries - 1) || maxPoolSize == 1;
+            boolean tryPool = retryCount < (numberOfCallRetries - 1)
+                                 || maxPoolSize == 1
+                                 || numberOfCallRetries == 1;
             long l = System.currentTimeMillis();
             socketWrapper = getConnection(marshaller, unmarshaller, tryPool, timeLeft);
             long d = System.currentTimeMillis() - l;




More information about the jboss-remoting-commits mailing list