Don't timeout a stop since that can lead to a failover connection not being able to reconnect correctly.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@638891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2008-03-19 15:52:36 +00:00
parent 1656e1dd52
commit c18b583020
1 changed files with 2 additions and 2 deletions

View File

@ -876,8 +876,8 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
}
public void stop() throws Exception {
stopAsync();
if( !stopped.await(10, TimeUnit.SECONDS) ) {
LOG.info("Could not shutdown the connection to '" + transport.getRemoteAddress()+ "' in a timely manner.");
while( !stopped.await(5, TimeUnit.SECONDS) ) {
LOG.info("The connection to '" + transport.getRemoteAddress()+ "' is taking a long time to shutdown.");
}
}