Fix misleading comment

This commit is contained in:
norman 2012-07-03 08:39:35 +02:00
parent d8880efe61
commit b0742950b9
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ public abstract class FrameDecoder extends SimpleChannelUpstreamHandler implemen
ChannelBuffer cumulation = this.cumulation;
assert cumulation.readable();
if (cumulation instanceof CompositeChannelBuffer) {
// Make sure the resulting cumulation buffer has no more than 4 components.
// Make sure the resulting cumulation buffer has no more than the configured components.
CompositeChannelBuffer composite = (CompositeChannelBuffer) cumulation;
if (composite.numComponents() >= maxCumulationBufferComponents) {
cumulation = composite.copy();

View File

@ -201,7 +201,7 @@ public class HttpChunkAggregator extends SimpleChannelUpstreamHandler implements
protected void appendToCumulation(ChannelBuffer input) {
ChannelBuffer cumulation = this.currentMessage.getContent();
if (cumulation instanceof CompositeChannelBuffer) {
// Make sure the resulting cumulation buffer has no more than 4 components.
// Make sure the resulting cumulation buffer has no more than the configured components.
CompositeChannelBuffer composite = (CompositeChannelBuffer) cumulation;
if (composite.numComponents() >= maxCumulationBufferComponents) {
currentMessage.setContent(ChannelBuffers.wrappedBuffer(composite.copy(), input));