not chunked fastcgi
I would like to send Server-Sent-Events, and the standard suggests it is preferable to disable chunking.
In the Notes section of http://dev.w3.org/html5/eventsource/
"Authors are also cautioned that HTTP chunking can have unexpected negative effects on the reliability of this protocol. Where possible, chunking should be disabled for serving event streams unless the rate of messages is high enough for this not to matter."
I am using:
lighttpd/1.4.26 (ssl) - a light and fast webserver
Build-Date: Jul 18 2010 01:15:37
Updated by chris.kilgour over 5 years ago
- File prevent-chunked-transfer-encoding-for-server-sent-events.patch prevent-chunked-transfer-encoding-for-server-sent-events.patch added
The cited recommendation has nothing to do with HTTP protocol level, but rather a recommendation from W3C for server-sent events.
The attached patch defaults fastCGI applications responding with "Content-Type: text/event-stream" to disable chunked responses unless the "Transfer-Encoding: chunked" header is also present in the response.
Also available in: Atom