Re: Does apache stop a script mid execution ?



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

arkascha
.



Relevant Pages

  • Re: Does apache stop a script mid execution ?
    ... I have a quick and probably dumb question, ... If the user calls a time consuming script and then stops or refreshes ... it DOES stop the execution. ... That is usually the desired behaviour, since you dont want to spend all the ...
    (comp.lang.php)
  • Re: Does apache stop a script mid execution ?
    ... If the user calls a time consuming script and then stops or refreshes ... it DOES stop the execution. ... That is usually the desired behaviour, since you dont want to spend all the ...
    (comp.lang.php)
  • RE: A question about anacron (ubuntu 8.10)
    ... This may be a dumb question, ... ps aux | grep cron ... Also you can try putting some echos in your script... ... Does a standard Ubuntu 8.10 installation run anacron by default and, ...
    (Ubuntu)
  • Does apache stop a script mid execution ?
    ... I have a quick and probably dumb question, ... 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 ...
    (comp.lang.php)
  • remotely query group membership of machine via script/wmi
    ... so excuse me in advance if this is a dumb question. ... administrators group on certain remote machines and I am hoping I can ... Can someone help me with an example script of how to do this? ...
    (microsoft.public.windowsxp.wmi)