Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

Issue 731 in cherokee: Premature close support on PHP/FastCGI

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


codesite-noreply at google

Feb 8, 2010, 1:19 AM

Post #1 of 1 (206 views)
Permalink
Issue 731 in cherokee: Premature close support on PHP/FastCGI

Status: Accepted
Owner: alobbs
Labels: Type-Defect Priority-Medium OpSys-All Component-Logic

New issue 731 by alobbs: Premature close support on PHP/FastCGI
http://code.google.com/p/cherokee/issues/detail?id=731

I've just been told to test this example:

<?php
header("Connection: close"); // not sure we need this one
header("Content-Encoding: none");
ignore_user_abort(true);
ob_start();

echo ('Lets output something.');

// output Content-Length and flush buffers:
$size = ob_get_length();
header("Content-Length: $size");
ob_end_flush();
flush();

// ****************
// do some heavy processing here:
sleep(5);

function postproc() {
flush();
sleep(5);
}
register_shutdown_function('postproc');
?>

Cherokee ought to reply as soon as the flush() is performed. However, it
waits 10 seconds until the script is finalized.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.