Only call ByteToMessageDecoder.decode(..) if the inbound buffer is readable. See #607
This commit is contained in:
parent
516351b82c
commit
0c157a94cb
@ -69,7 +69,7 @@ public abstract class ByteToMessageDecoder<O>
|
||||
ByteBuf in = ctx.inboundByteBuffer();
|
||||
|
||||
boolean decoded = false;
|
||||
for (;;) {
|
||||
while (in.readable()) {
|
||||
try {
|
||||
int oldInputLength = in.readableBytes();
|
||||
O o = decode(ctx, in);
|
||||
|
Loading…
Reference in New Issue
Block a user