[PATCH] register shutdown actions for apache child die
| From: | Olexander Shtepa | Date: | Tue, 07 Nov 2006 07:45:55 +0000 |
| Subject: | [PATCH] register shutdown actions for apache child die | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-26395@lists.php.net to get a copy of this message | ||
apache2handler sapi registers cleanup functions only for main apache process.
But apache 2 cleans _only_ child pool before it die.
This is reason for unclean connection closes in persistent connection (in pgsql exactly).
This patch adds shutdown actions registration on each child init.
Apache child will be call php_apache_server_shutdow() before it die like handler for Apache 1.3.
This patch closes bug #39330.
Attachment: [text/x-diff] child_exit.patch
Attachment: [text/x-diff] child_exit.patch