Remove unnecessary print

This commit is contained in:
Nan1t 2023-10-01 13:59:46 +03:00
parent 5615ec2321
commit b5605f8d12

View File

@ -29,8 +29,6 @@ public class ChannelTrafficHandler extends ChannelInboundHandlerAdapter {
ByteBuf in = (ByteBuf) msg; ByteBuf in = (ByteBuf) msg;
int bytes = in.readableBytes(); int bytes = in.readableBytes();
System.out.println(bytes + " bytes");
if (packetSize > 0 && bytes > packetSize) { if (packetSize > 0 && bytes > packetSize) {
closeConnection(ctx, "Closed %s due too large packet size (%d bytes)", ctx.channel().remoteAddress(), bytes); closeConnection(ctx, "Closed %s due too large packet size (%d bytes)", ctx.channel().remoteAddress(), bytes);
return; return;