Even if no copy was made, writerIndex should be advanced

This commit is contained in:
Trustin Lee 2010-01-28 03:28:59 +00:00
parent 2b786116b5
commit 832fe29063

View File

@ -344,6 +344,8 @@ class NioWorker implements Runnable {
directBuffer.flip(); directBuffer.flip();
buffer.writeBytes(directBuffer); buffer.writeBytes(directBuffer);
directBufferPool.release(directBuffer); directBufferPool.release(directBuffer);
} else {
buffer.writerIndex(buffer.writerIndex() + readBytes);
} }
} }