#41593 [Opn->Fbk]: FastCGI does not handle graceful reload/shutdown

From: Date: Tue, 05 Jun 2007 07:34:58 +0000
Subject: #41593 [Opn->Fbk]: FastCGI does not handle graceful reload/shutdown
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113381@lists.php.net to get a copy of this message
ID: 41593 Updated by: sniper@php.net Reported By: jonepet at dcvhost dot no -Status: Open +Status: Feedback Bug Type: CGI related Operating System: Linux PHP Version: 5.2.3 New Comment: In what PHP version did it work? Previous Comments: ------------------------------------------------------------------------ [2007-06-04 23:06:35] jonepet at dcvhost dot no 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 this bug report at http://bugs.php.net/?id=41593&edit=1

« previous php.bugs (#113381) next »