[jboss-remoting-commits] JBoss Remoting SVN: r4075 - 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
Fri Apr 25 03:20:37 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-04-25 03:20:36 -0400 (Fri, 25 Apr 2008)
New Revision: 4075

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java
Log:
JBREM-955: Wraps InterruptedException in a RuntimeException.

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-04-25 05:55:04 UTC (rev 4074)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java	2008-04-25 07:20:36 UTC (rev 4075)
@@ -730,6 +730,12 @@
             long d = System.currentTimeMillis() - l;
             if (trace) log.trace("took " + d + " ms to get socket " + socketWrapper);
          }
+         catch (InterruptedException e)
+         {
+            semaphore.release();
+            if (trace) log.trace(this + " released semaphore: " + semaphore.permits(), e);
+            throw new RuntimeException(e);
+         }
          catch (Exception e)
          {
 //            if (bailOut)
@@ -918,6 +924,12 @@
          log.debug(this, ex);
          throw (CannotConnectException) ex;
       }
+      
+      if (ex instanceof InterruptedException)
+      {
+         log.debug(this, ex);
+         throw new RuntimeException(ex);
+      }
 
       throw new InvocationFailureException("Unable to perform invocation", ex);
    }




More information about the jboss-remoting-commits mailing list