forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly close
EmbeddedChannel
and release buffers in `SnappyFrame…
…DecoderTest` (netty#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 netty#9850 (comment).
- Loading branch information
1 parent
e69c417
commit d6638d5
Showing
1 changed file
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters