You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was writing a CGI function which generates quite big responses (>2k). So it utilizes consecutive httpdSend() calls and HTTPD_CGI_MORE return code.
At some point I've stumbled upon corrupted responses. curl says Malformed encoding found in chunked-encoding.
Further digging revealed that I managed to fill conn->priv.sendBuff to the brim (exactly 2048 bytes) before returning from the function with HTTPD_CGI_MORE. That, in turn, caused a problem in httpdFlushSendBuffer(), because there is no room for closing a chunk with \r\n, and chunk length is calculated incorrectly.
I'm going to try to fix this issue myself. If I succeed I'll open a pull request.
The text was updated successfully, but these errors were encountered:
Hurray! It's just the right time.
I've returned to working on the project in which I discovered this issue a few days ago, so now I can switch back from my fork :)
I was writing a CGI function which generates quite big responses (>2k). So it utilizes consecutive
httpdSend()
calls andHTTPD_CGI_MORE
return code.At some point I've stumbled upon corrupted responses.
curl
saysMalformed encoding found in chunked-encoding
.Further digging revealed that I managed to fill
conn->priv.sendBuff
to the brim (exactly 2048 bytes) before returning from the function withHTTPD_CGI_MORE
. That, in turn, caused a problem inhttpdFlushSendBuffer()
, because there is no room for closing a chunk with\r\n
, and chunk length is calculated incorrectly.I'm going to try to fix this issue myself. If I succeed I'll open a pull request.
The text was updated successfully, but these errors were encountered: