Removed logging for the time being.

This commit is contained in:
tomasz.kowalczewski committed 2020-10-12 21:29:00 +02:00
1 parent 523a2193d3
commit 7c6898c72b
1 file changed
-31
@@ -1,31 +0,0 @@
package pl.tkowalcz.thjazi.http;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.http.FullHttpResponse;
import io.netty.handler.timeout.IdleStateEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class InactiveConnectionsHandler extends SimpleChannelInboundHandler<FullHttpResponse> {
private static final Logger LOGGER = LoggerFactory.getLogger(InactiveConnectionsHandler.class);
@Override
public void channelInactive(ChannelHandlerContext ctx) {
LOGGER.error("Channel became inactive");
}
@Override
protected void channelRead0(ChannelHandlerContext ctx, FullHttpResponse msg) {
LOGGER.error("Unexpected channel read invocation");
}
@Override
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) {
if (evt instanceof IdleStateEvent) {
LOGGER.debug("Idle state event {}", ctx.channel().remoteAddress());
ctx.close();
}
}
}