exceptionCaught event should be triggered on connection attempt failure

This commit is contained in:
Trustin Lee 2009-07-14 09:42:54 +00:00
parent f59f480fb7
commit f9c2f66f19

View File

@ -129,6 +129,7 @@ final class LocalClientChannelSink extends AbstractChannelSink {
pipeline = serverChannel.getConfig().getPipelineFactory().getPipeline();
} catch (Exception e) {
future.setFailure(e);
fireExceptionCaught(channel, e);
logger.warn(
"Failed to initialize an accepted socket.", e);
return;