mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646354 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
456c1b157b
commit
cec77fd12a
|
@ -198,7 +198,7 @@ public class FailoverTransport implements CompositeTransport {
|
|||
synchronized (reconnectMutex) {
|
||||
boolean reconnectOk = false;
|
||||
if(started) {
|
||||
LOG.warn("Transport failed, attempting to automatically reconnect due to: " + e);
|
||||
LOG.warn("Transport failed to " + connectedTransportURI+ " , attempting to automatically reconnect due to: " + e);
|
||||
LOG.debug("Transport failed with the following exception:", e);
|
||||
reconnectOk = true;
|
||||
}
|
||||
|
@ -207,7 +207,6 @@ public class FailoverTransport implements CompositeTransport {
|
|||
failedConnectTransportURI=connectedTransportURI;
|
||||
connectedTransportURI = null;
|
||||
connected=false;
|
||||
|
||||
if(reconnectOk) {
|
||||
reconnectTask.wakeup();
|
||||
}
|
||||
|
@ -396,7 +395,9 @@ public class FailoverTransport implements CompositeTransport {
|
|||
|
||||
// Wait for transport to be connected.
|
||||
Transport transport = connectedTransport.get();
|
||||
while (transport == null && !disposed && connectionFailure == null) {
|
||||
while (transport == null && !disposed
|
||||
&& connectionFailure == null
|
||||
&& !Thread.currentThread().isInterrupted()) {
|
||||
LOG.trace("Waiting for transport to reconnect.");
|
||||
try {
|
||||
reconnectMutex.wait(1000);
|
||||
|
|
Loading…
Reference in New Issue