git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1213691 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2011-12-13 13:42:37 +00:00
parent 2bfd88e87d
commit cfcd4f7f64
2 changed files with 11 additions and 10 deletions

View File

@ -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);
}

View File

@ -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);
}
}
});