This commit is contained in:
@@ -317,6 +317,7 @@ public final class Transport {
|
|||||||
channel.connect(node.address, node, new CompletionHandler<Void, TransportNode>() {
|
channel.connect(node.address, node, new CompletionHandler<Void, TransportNode>() {
|
||||||
@Override
|
@Override
|
||||||
public void completed(Void result, TransportNode attachment) {
|
public void completed(Void result, TransportNode attachment) {
|
||||||
|
try {
|
||||||
attachment.disabletime = 0;
|
attachment.disabletime = 0;
|
||||||
AsyncConnection asyncConn = AsyncConnection.create(channel, attachment.address, factory.readTimeoutSeconds, factory.writeTimeoutSeconds);
|
AsyncConnection asyncConn = AsyncConnection.create(channel, attachment.address, factory.readTimeoutSeconds, factory.writeTimeoutSeconds);
|
||||||
if (future.isDone()) {
|
if (future.isDone()) {
|
||||||
@@ -324,6 +325,9 @@ public final class Transport {
|
|||||||
} else {
|
} else {
|
||||||
future.complete(asyncConn);
|
future.complete(asyncConn);
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
failed(e, attachment);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user