Patch for chunked-requests ported to 3.0 was still omitted when same was
merged to 3.1.
// when we read chunked requests, the entire body is buffered
// XXX: this check ignores header size and its limits.
if (conn->in.dechunkingState == ConnStateData::chunkParsing)
- return conn->in.notYetUsed < Config.maxChunkedRequestBodySize;
+ return ((int64_t)conn->in.notYetUsed) < Config.maxChunkedRequestBodySize;
return conn->in.notYetUsed >= Config.maxRequestHeaderSize ? 0 : 1;
}