[#1782] Fix IndexOutOfBoundException with direct buffer and gathering writes
This commit is contained in:
parent
005d33a761
commit
f76c01c3aa
@ -336,7 +336,7 @@ public final class ChannelOutboundBuffer {
|
||||
nioBuffers[nioBufferCount ++] = buf.internalNioBuffer(readerIndex, readableBytes);
|
||||
} else {
|
||||
ByteBuffer[] nioBufs = buf.nioBuffers();
|
||||
if (nioBufferCount + nioBufs.length == nioBuffers.length + 1) {
|
||||
if (nioBufferCount + nioBufs.length > nioBuffers.length) {
|
||||
this.nioBuffers = nioBuffers = doubleNioBufferArray(nioBuffers, nioBufferCount);
|
||||
}
|
||||
for (ByteBuffer nioBuf: nioBufs) {
|
||||
|
Loading…
Reference in New Issue
Block a user