Re: Does apache stop a script mid execution ?
- From: The Natural Philosopher <a@xxx>
- Date: Tue, 22 Jul 2008 12:25:55 +0100
arkascha wrote:
Guillermo Antonio Amaral Bastidas wrote:
Hi everybody,
I have a quick and probably dumb question, keep in mind I just
dumped my old love FastCGI + Perl for it's younger hotter friend PHP5.
If the user calls a time consuming script and then stops or refreshes
the browser before the script had time to finish will Apache kill the
script mid execution or will it let it finish ?
I ask this stupid question because this seems to be happening in one
of my sites.
If this is true, is there any way to tell apache to finish what it
was doing ?
Yes, it DOES stop the execution. That is usually the desired behaviour, since you dont want to spend all the
valuable cpu ressource to produce a result noone is ever going to see
anyway because the client has gone away. However you can change this behaviour: take a look at the ignore_user_abort
function
that is interesting and worth knowing.
How does it relate to e.g. a script performing a large mysql query?
arkascha.
- Follow-Ups:
- Re: Does apache stop a script mid execution ?
- From: arkascha
- Re: Does apache stop a script mid execution ?
- References:
- Does apache stop a script mid execution ?
- From: Guillermo Antonio Amaral Bastidas
- Re: Does apache stop a script mid execution ?
- From: arkascha
- Does apache stop a script mid execution ?
- Prev by Date: Re: can't insert date
- Next by Date: www.shoes1998.com
- Previous by thread: Re: Does apache stop a script mid execution ?
- Next by thread: Re: Does apache stop a script mid execution ?
- Index(es):
Relevant Pages
|