[jboss-remoting-commits] JBoss Remoting SVN: r6449 - 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 Jul 17 14:20:45 EDT 2012


Author: ron.sigal at jboss.com
Date: 2012-07-17 14:20:45 -0400 (Tue, 17 Jul 2012)
New Revision: 6449

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java
Log:
JBREM-1305: Moved log call in getConnection().

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	2012-07-17 18:19:38 UTC (rev 6448)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java	2012-07-17 18:20:45 UTC (rev 6449)
@@ -1129,12 +1129,12 @@
       long start = System.currentTimeMillis();
       long timeToWait = (timeAllowed > 0) ? timeAllowed : connectionWait;
       boolean timedout = !semaphore.attempt(timeToWait);
-      if (trace) log.trace(this + " obtained semaphore: " + semaphore.permits());
       
       if (timedout)
       {
          throw new IllegalStateException("Timeout waiting for a free socket");
       }
+      if (trace) log.trace(this + " obtained semaphore: " + semaphore.permits());
       
       SocketWrapper pooled = null;
 



More information about the jboss-remoting-commits mailing list