Open rewritten opened 10 years ago
HTTP chunked encoding is not about keeping the connection alive, but to ensure that the message is sent as a whole to the client, not buffered.
I'd like more information about the "unexpected negative effects" than just a warning. I noticed buffering, but I never noticed proxies dropping the connection because of chunking.
Citing: http://www.w3.org/TR/2009/WD-eventsource-20091029/#notes
So not only chunking is not a solution for the proxies dropping requests, but also it may lead to unexpected dropped connections.
A default one-byte comment every 15s should just be the default keep-live tool, and anything else (like supporting libcurl by sending 16 bytes every 15 seconds or something like that) available by configuration.