[#1221] Make sure HttpObjectAggregator 100-Continue buffer is not released

This commit is contained in:
Norman Maurer 2013-04-02 07:38:46 +02:00
parent 6a9d055f57
commit d9ac6638f4

View File

@ -47,8 +47,8 @@ import static io.netty.handler.codec.http.HttpHeaders.*;
*/
public class HttpObjectAggregator extends MessageToMessageDecoder<HttpObject> {
public static final int DEFAULT_MAX_COMPOSITEBUFFER_COMPONENTS = 1024;
private static final ByteBuf CONTINUE = Unpooled.copiedBuffer(
"HTTP/1.1 100 Continue\r\n\r\n", CharsetUtil.US_ASCII);
private static final ByteBuf CONTINUE = Unpooled.unreleasableBuffer(Unpooled.copiedBuffer(
"HTTP/1.1 100 Continue\r\n\r\n", CharsetUtil.US_ASCII));
private final int maxContentLength;
private FullHttpMessage currentMessage;