Release the cumulation buffer after firing upstream so we don't end up

with a "leak" because of a very big ChannelBuffer. This patch is
extracted of the pull request 39. Thanks to arya for the patch
This commit is contained in:
Norman Maurer 2011-11-03 11:25:24 +01:00
parent 56462ef91a
commit 31b319a5dc

View File

@ -298,6 +298,10 @@ public abstract class FrameDecoder extends SimpleChannelUpstreamHandler {
unfoldAndFireMessageReceived(context, remoteAddress, frame);
}
if (!cumulation.readable()) {
this.cumulation = null;
}
}
private void unfoldAndFireMessageReceived(ChannelHandlerContext context, SocketAddress remoteAddress, Object result) {