activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r606241 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
Date Fri, 21 Dec 2007 16:45:22 GMT
Author: rajdavies
Date: Fri Dec 21 08:45:21 2007
New Revision: 606241

URL: http://svn.apache.org/viewvc?rev=606241&view=rev
Log:
Only wait 1 second for connections to stop. When killing a stale 
connection - if stop doesn't complete - it hangs the broker.

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java?rev=606241&r1=606240&r2=606241&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
Fri Dec 21 08:45:21 2007
@@ -876,7 +876,7 @@
             doStop();
             stopLatch.countDown();
         } else {
-            stopLatch.await();
+            stopLatch.await(1, TimeUnit.SECONDS);
         }
     }
 



Mime
View raw message