@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { channel = ctx.channel(); channels.add(channel); attempts = 0; ctx.fireChannelActive(); }