48938e2d99
Motivation: AbstractDiskHttpData may cause a memory leak when a CompositeByteBuf is used. This happened because we may call copy() but actually never release the newly created ByteBuf. Modifications: - Remove copy() call and just use ByteBuf.getBytes(...) which will internally handle the writing to the FileChannel without any extra copies that need to be released later on. - Add unit test Result: Fixes https://github.com/netty/netty/issues/10354 |
||
---|---|---|
.. | ||
src | ||
pom.xml |