You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ai...@apache.org on 2008/03/14 17:29:11 UTC

svn commit: r637146 - /incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java

Author: aidan
Date: Fri Mar 14 09:29:08 2008
New Revision: 637146

URL: http://svn.apache.org/viewvc?rev=637146&view=rev
Log:
QPID-848:  Add short sleep when a connection fails to complete so that we wait for all exceptions to be thrown

Modified:
    incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java

Modified: incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java?rev=637146&r1=637145&r2=637146&view=diff
==============================================================================
--- incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java (original)
+++ incubator/qpid/branches/M2.1/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java Fri Mar 14 09:29:08 2008
@@ -435,7 +435,14 @@
         if (!_connected)
         {
             String message = null;
-
+            try
+            {
+                Thread.sleep(150);
+            }
+            catch (InterruptedException e)
+            {
+                // Eat it, we've hopefully got all the exceptions if this happened
+            }
             if (exceptions.size() > 0)
             {
                 JMSException e = exceptions.get(0);