Release ByteBuf in CacheClient when downloading chunks
This commit is contained in:
@@ -91,7 +91,9 @@ public class ArchiveResponseDecoder extends ByteToMessageDecoder
|
||||
bytesInBlock,
|
||||
compressedData.writerIndex(), size);
|
||||
|
||||
compressedData.writeBytes(in.readBytes(bytesToRead));
|
||||
ByteBuf chunk = in.readBytes(bytesToRead);
|
||||
compressedData.writeBytes(chunk);
|
||||
chunk.release();
|
||||
|
||||
totalRead += bytesToRead;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user