@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { if (LOG.isTraceEnabled()) { LOG.trace("Channel closed " + e); } allChannels.remove(ctx.getChannel()); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) { LOG.warn("Unexpected exception from downstream.", e.getCause()); e.getChannel().close(); allChannels.remove(e.getChannel()); }
@Override public void channelClosed( ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { LOG.info("Connection to {} disconnected.", e.getChannel().getRemoteAddress()); super.channelClosed(ctx, e); e.getChannel().close(); allChannels.remove(e.getChannel()); }
public void closeChannel(Channel channel) { // The channel may have already been removed from the future if a timeout occurred, and this method may be called just after. LOGGER.debug("Closing Channel {} ", channel); try { removeAll(channel); Channels.setDiscard(channel); Channels.silentlyCloseChannel(channel); } catch (Throwable t) { LOGGER.debug("Error closing a connection", t); } openChannels.remove(channel); }
/** * Removes the channel for a BGP session. * * @param channel the channel to remove */ void removeSessionChannel(Channel channel) { allChannels.remove(channel); }
@Override public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { // called every time a channel disconnects channels.remove(e.getChannel()); }
@Override public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { // called every time a channel disconnects channels.remove(e.getChannel()); }
@Override public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { // called every time a channel disconnects channels.remove(e.getChannel()); }
@Override public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { // called every time a channel disconnects channels.remove(e.getChannel()); }
@Override public void destroyObject(Channel channel) throws Exception { LOG.trace("Destroying channel: {}", channel); if (channel.isOpen()) { NettyHelper.close(channel); } allChannels.remove(channel); }
@Override public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { channelGroup.remove(ctx.getChannel()); LOG.debug("TSO channel disconnected: {}", ctx.getChannel()); }
@Override public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { channelGroup.remove(ctx.getChannel()); LOG.debug("TSO channel disconnected: {}", ctx.getChannel()); }
@Override public void channelClosed(ChannelHandlerContext c, ChannelStateEvent e) throws Exception { // Remove us from the channel group channelGroup.remove(e.getChannel()); super.channelClosed(c, e); }
@Override public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { allChannels.remove(e.getChannel()); super.channelClosed(ctx, e); }
@Override public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { // called every time a channel disconnects channels.remove(e.getChannel()); this.server.getCounters().incrementChannelDisconnectsAndGet(); }
@Override public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { // called every time a channel disconnects channels.remove(e.getChannel()); this.server.getCounters().incrementChannelDisconnectsAndGet(); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) { LOG.warn("Unexpected exception from downstream.", e.getCause()); e.getChannel().close(); allChannels.remove(e.getChannel()); }
@Override public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { // called every time a channel disconnects channels.remove(e.getChannel()); this.server.getCounters().incrementChannelDisconnectsAndGet(); }
@Override public void channelClosed( ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception { LOG.info("Connection to {} disconnected.", e.getChannel().getRemoteAddress()); super.channelClosed(ctx, e); e.getChannel().close(); allChannels.remove(e.getChannel()); }
@Override public void channelClosed( ChannelHandlerContext ctx, ChannelStateEvent e ) throws Exception { super.channelClosed( ctx, e ); if ( !ctx.getChannel().isOpen() ) { tryToCloseChannel( ctx.getChannel() ); } channelGroup.remove( e.getChannel() ); }