Only call ByteToMessageDecoder.decode(..) if the inbound buffer is readable. See #607

This commit is contained in:
Norman Maurer 2012-09-15 20:12:39 +02:00
parent 516351b82c
commit 0c157a94cb

View File

@ -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);