[#670] Intermittent IllegalStateException with ByteToMessageDecoder impl with bounded inbound buffer

* AioSocketChannel.expandReadBuffer() should not call discardReadBytes()
becuase it messes up with NIO.2
This commit is contained in:
Trustin Lee 2012-10-22 12:42:07 -07:00
parent ae839db383
commit 279712a6a0

View File

@ -192,7 +192,6 @@ public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
final int maxCapacity = byteBuf.maxCapacity();
if (capacity == maxCapacity) {
byteBuf.discardReadBytes();
return;
}