This commit is contained in:
2023-06-19 14:33:54 +08:00
parent f457c3753a
commit 7f4718e238

View File

@@ -27,7 +27,7 @@ public class StartAndLengthFieldFrameDecoder extends ByteToMessageDecoder {
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf buffer,
List<Object> out) throws Exception {
System.out.println();
// System.out.println();
// log.info("打印ByteBuf:{}", buffer.toString());
// 可读长度必须大于基本长度
if (buffer.readableBytes() <= BASE_LENGTH) {