mirror of https://github.com/apache/activemq.git
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:
parent
1656e1dd52
commit
c18b583020
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue