Project

General

Profile

Actions

Bug #2111

closed

Chunking + keep-alive results in CGI stalls

Added by mlcreech over 14 years ago. Updated about 8 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_cgi
Target version:
-
ASK QUESTIONS IN Forums:

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

Actions #1

Updated by gstrauss about 8 years ago

Potentially fixed in suggested patch https://github.com/lighttpd/lighttpd1.4/pull/31

Actions #2

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.

Actions

Also available in: Atom