#41593 [NEW]: FastCGI does not handle graceful reload/shutdown

From: Date: Mon, 04 Jun 2007 23:06:35 +0000
Subject: #41593 [NEW]: FastCGI does not handle graceful reload/shutdown
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113372@lists.php.net to get a copy of this message
From: jonepet at dcvhost dot no Operating system: Linux PHP version: 5.2.3 PHP Bug Type: CGI related Bug description: FastCGI does not handle graceful reload/shutdown Description: ------------ This is a duplicate of older closed Bug #36158. Solved in previous version, but broken again in newer (because of replaced lib?). The FastCGI module in PHP does not handle graceful/SIGTERM shutdown/reload correctly. When sending a graceful reload to Apache, all running PHP processes dies, and Apache return "500 Internal Server Error" to waiting HTTP clients. Reproduce code: --------------- <?php sleep(10); echo "Done"; ?> Open in a web browser and then do an apache2ctl graceful on the server. Expected result: ---------------- "Done" should be printed to the web browser after 10 seconds. Actual result: -------------- "Internal Server Error" to browser and "premature end of script headers" to log file. -- Edit bug report at http://bugs.php.net/?id=41593&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41593&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41593&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41593&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41593&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41593&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41593&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41593&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41593&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41593&r=support Expected behavior: http://bugs.php.net/fix.php?id=41593&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41593&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41593&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41593&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41593&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41593&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41593&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41593&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41593&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41593&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41593&r=mysqlcfg

« previous php.bugs (#113372) next »