|
From: <php...@li...> - 2010-02-05 07:01:38
|
Hi Mark,
On Fri, 2010-02-05 at 13:17 +0700,
php...@li... wrote:
> while(!feof($fs)) {
> $contents = fgets($fs, 4096); // Chunk download
HTTP/1.1 chunked encoding is not supported by the CGI spec. CGI expects
the CONTENT_LENGTH header. If it is missing, php-cgi will wait forever
until it is destroyed.
The FastCGI SAPI does support it; and all php-cgi binaries > 5.2.0 are
compiled with --enable-fastcgi per default.
I will add a new method to the PHPFastCGIServlet in version 5.5.6, which
will allow clients to establish a two-way connection with the php script
using either "Connection: Upgrade" (WebSockets) or Transfer-Encoding:
Chunked (semi-standard HTTP tunnel).
Please see my previous mail for details.
Regards,
Jost Boekemeier
|