No need for a dynamicbuffer anymore
This commit is contained in:
parent
d126059fb4
commit
bfeb9ffd9a
@ -78,8 +78,8 @@ public class FixedLengthFrameDecoder extends FrameDecoder {
|
||||
protected ChannelBuffer newCumulationBuffer(ChannelHandlerContext ctx, int minimumCapacity) {
|
||||
ChannelBufferFactory factory = ctx.getChannel().getConfig().getBufferFactory();
|
||||
if (allocateFullBuffer) {
|
||||
return ChannelBuffers.dynamicBuffer(
|
||||
factory.getDefaultOrder(), frameLength, ctx.getChannel().getConfig().getBufferFactory());
|
||||
return ChannelBuffers.buffer(
|
||||
factory.getDefaultOrder(), frameLength);
|
||||
}
|
||||
return super.newCumulationBuffer(ctx, minimumCapacity);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user