Re: Safe execution timeout handling
| From: | Stanislav Malyshev | Date: | Wed, 11 Mar 2015 22:46:47 +0000 |
| Subject: | Re: Safe execution timeout handling | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84596@lists.php.net to get a copy of this message | ||
Hi!
> I think, after "max_execution_time" is exceeded, we may start another
> "hard_timeout", and in case the EG(vm_interrupt) wasn't handled
> "safely", kill the process.
I remember such proposal floating on the list recently, with two-stage
timeouts. But wouldn't killing the process run the same risk that it
left something messed up in SHM?
Also, in threaded environments that's probably not an option, and PHP
may not even own the thread.
--
Stas Malyshev
smalyshev@gmail.com