Hi,
If a channel is first connected, and then add a listener, would it be possible that the listener could not capture the connected event? For example in HexDumpProxyFrontendHandler, what if a channel is connected (let's assume it is connected super fast) before the listener is added?
@Override
public void channelActive(ChannelHandlerContext ctx) {
...
ChannelFuture f = b.connect(remoteHost, remotePort);
outboundChannel = f.channel();
f.addListener(new ChannelFutureListener() {
@Override
public void operationComplete(ChannelFuture future) {
...
}
}
});
}