mirror of
https://github.com/tiennm99/tjahzi.git
synced 2026-10-15 10:15:46 +00:00
Removed logging for the time being.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user