[jboss-remoting-commits] JBoss Remoting SVN: r6440 - 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
Mon Jul 16 22:26:53 EDT 2012


Author: ron.sigal at jboss.com
Date: 2012-07-16 22:26:49 -0400 (Mon, 16 Jul 2012)
New Revision: 6440

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java
Log:
JBREM-1305: transport() catches IllegalStateException from getConnection() and doesn't release a semaphore.

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-04-10 01:07:41 UTC (rev 6439)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java	2012-07-17 02:26:49 UTC (rev 6440)
@@ -822,6 +822,13 @@
             if (trace) log.trace(this + " released semaphore: " + semaphore.permits(), e);
             throw new RuntimeException(e);
          }
+         catch (IllegalStateException e)
+         {
+            sockEx =  new CannotConnectException(
+                  "Can not get connection to server. All connections for " +
+                  locator + " are in use", e);
+            continue;
+         }
          catch (Exception e)
          {
 //            if (bailOut)



More information about the jboss-remoting-commits mailing list