Bug #2111
closedChunking + keep-alive results in CGI stalls
Description
I encountered a strange problem in which the browser was failing to complete downloads when fetching data from a CGI script. I reproduced it consistently on the command-line using curl
. The problem seems to be that when using HTTP chunking + keep-alive, the chunked output is never considered "complete" by the client, because the connection gets re-used. I was using the linux-sysepoll
handler, if that makes a difference.
My fix was to use the attached patch, which just forces the connection closed after each CGI response. A more specific fix might involve checking for keepalive or some such.
Tested with Lighttpd 1.4.24
Files
Updated by gstrauss about 8 years ago
Potentially fixed in suggested patch https://github.com/lighttpd/lighttpd1.4/pull/31
Updated by gstrauss about 8 years ago
- Status changed from New to Fixed
Should be fixed in next version of lighttpd (1.4.40)
Patch available at https://github.com/lighttpd/lighttpd1.4/pull/31 has been committed to trunk.
Also available in: Atom