netty5/codec/src
Norman Maurer bcb6d38026 Correctly close EmbeddedChannel and release buffers in SnappyFrameDecoderTest (#9851)
Motivation:

We did not correctly close the `EmbeddedChannel` which would lead to not have `handlerRemoved(...)` called. This can lead to leaks. Beside this we also did not correctly consume produced data which could also show up as a leak.

Modifications:

- Always call `EmbeddedChannel.finish()`
- Ensure we consume all produced data and release it

Result:

No more leaks in test. This showed up in https://github.com/netty/netty/pull/9850#issuecomment-562504863.
2019-12-06 12:03:19 +01:00
..
main/java/io/netty/handler/codec Improve error handling in ByteToMessageDecoder when expand fails (#9822) 2019-11-28 12:29:05 +01:00
test Correctly close EmbeddedChannel and release buffers in SnappyFrameDecoderTest (#9851) 2019-12-06 12:03:19 +01:00