[#1221] Make sure HttpObjectAggregator 100-Continue buffer is not released
This commit is contained in:
parent
6a9d055f57
commit
d9ac6638f4
@ -47,8 +47,8 @@ import static io.netty.handler.codec.http.HttpHeaders.*;
|
|||||||
*/
|
*/
|
||||||
public class HttpObjectAggregator extends MessageToMessageDecoder<HttpObject> {
|
public class HttpObjectAggregator extends MessageToMessageDecoder<HttpObject> {
|
||||||
public static final int DEFAULT_MAX_COMPOSITEBUFFER_COMPONENTS = 1024;
|
public static final int DEFAULT_MAX_COMPOSITEBUFFER_COMPONENTS = 1024;
|
||||||
private static final ByteBuf CONTINUE = Unpooled.copiedBuffer(
|
private static final ByteBuf CONTINUE = Unpooled.unreleasableBuffer(Unpooled.copiedBuffer(
|
||||||
"HTTP/1.1 100 Continue\r\n\r\n", CharsetUtil.US_ASCII);
|
"HTTP/1.1 100 Continue\r\n\r\n", CharsetUtil.US_ASCII));
|
||||||
|
|
||||||
private final int maxContentLength;
|
private final int maxContentLength;
|
||||||
private FullHttpMessage currentMessage;
|
private FullHttpMessage currentMessage;
|
||||||
|
Loading…
Reference in New Issue
Block a user