]> granicus.if.org Git - php/commit
Add apache_reset_timeout() function for Apache1. This is needed because
authorRasmus Lerdorf <rasmus@php.net>
Sat, 4 Dec 2004 07:16:44 +0000 (07:16 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sat, 4 Dec 2004 07:16:44 +0000 (07:16 +0000)
commit224d2479b39ac02a76c611423b784e9487db65c3
treebdd8edc7ccc8da00fb27c5941216884af49ee5fc
parent9ff0d0818ec01827a2cee3dfd6102a4ad2c6a2ca
Add apache_reset_timeout() function for Apache1.  This is needed because
Apache1 only resets the write timer, which defaults to 300 seconds, on
a successful write.  That is, if the client has gone away and Apache
attempts a write which fails it will set the conn->aborted flag but not
reset the timeout.  Assuming the PHP script is running in ignore_user_abort
mode we ignore the aborted flag, but we'll still get blown out of the water
300 seconds after the failed write unless we periodically reset the timer.
With set_time_limit(0), ignore_user_abort(true) and periodic
apache_reset_timeout() calls we can theoretically run forever which is
why I disabled this call in safe mode.
NEWS
sapi/apache/php_apache.c