mirror of https://github.com/apache/activemq.git
apply patch for: https://issues.apache.org/jira/browse/AMQ-3624
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1213691 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2bfd88e87d
commit
cfcd4f7f64
|
@ -196,9 +196,9 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
|||
if (!stopping.get()) {
|
||||
transportException.set(e);
|
||||
if (TRANSPORTLOG.isDebugEnabled()) {
|
||||
TRANSPORTLOG.debug("Transport failed: " + e, e);
|
||||
TRANSPORTLOG.debug(this + " failed: " + e, e);
|
||||
} else if (TRANSPORTLOG.isWarnEnabled() && !expected(e)) {
|
||||
TRANSPORTLOG.warn("Transport failed: " + e);
|
||||
TRANSPORTLOG.warn(this + " failed: " + e);
|
||||
}
|
||||
stopAsync();
|
||||
}
|
||||
|
@ -1256,7 +1256,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
|||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
private HashMap<String, String> createMap(Properties properties) {
|
||||
return new HashMap(properties);
|
||||
}
|
||||
|
|
|
@ -218,8 +218,9 @@ public class TransportConnector implements Connector, BrokerServiceAware {
|
|||
Connection connection = createConnection(transport);
|
||||
connection.start();
|
||||
} catch (Exception e) {
|
||||
String remoteHost = transport.getRemoteAddress();
|
||||
ServiceSupport.dispose(transport);
|
||||
onAcceptError(e);
|
||||
onAcceptError(e, remoteHost);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue