From: e at osterman dot com Operating system: FC6 PHP version: 5.2.0 PHP Bug Type: CGI related Bug description: FastCGI Requests silently dropped
Description: ------------ Dimitry states in bug #37422: > The "indle timeout" error is not a bug. It may occur > on high load, then requests concurrency is larger > then number of running PHP processes. This is the incorrect behavior and makes it impossible to detect when php-cgi is taking forever or simply ignoring you. According to the FastCGI specification, when the server is overloaded (e.g. connections exceed PHP_FCGI_CHILDREN), it should respond with FCGI_END_REQUEST packet with the protocolStatus flag of FCGI_OVERLOADED. The current behavior is php-cgi accepts the request, but never responds -- simply discarding it. It would be much better if PHP responded with FCGI_OVERLOADED, or simply rejected connections when it is too busy. http://www.fastcgi.com/devkit/doc/fcgi-spec.html#S5.5 Reproduce code: --------------- To reproduce, open up more than PHP_FCGI_CHILDREN connections to the php-cgi server. All connections will be accepted and all will accept packets, but only PHP_FCGI_CHILDREN of the connections will ever return a response. The rest of the connections will simply accept the request and do nothing. Expected result: ---------------- Server should respond with FCGI_END_REQUEST packet with the protocolStatus flag of FCGI_OVERLOADED or simply reject connections when connections exceed PHP_FCGI_CHILDREN. Actual result: -------------- php-cgi never responds; request is lost. -- Edit bug report at http://bugs.php.net/?id=39809&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39809&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39809&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39809&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39809&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39809&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39809&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39809&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39809&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39809&r=support Expected behavior: http://bugs.php.net/fix.php?id=39809&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39809&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39809&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39809&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39809&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39809&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39809&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39809&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39809&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39809&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39809&r=mysqlcfg