I have a PHP class, once called, sets the time limit to 60 seconds. The only special thing about this class is that it uses curl_multi_exec().
set_time_limit(60);
ini_set('max_execution_time', 60);
The problem is that under Apache’s /server-status page, this page and another one that uses single threaded curl run past their max_execution_time and reach up to 200 seconds, sometimes!
What am I missing? Is there a way to setup Apache to terminate scripts (or even connections) running for longer than say 90 seconds?
From the manual:
Because curl requests fall under this category, time spent waiting for a request to complete will not be counted. You should set the curl setting
CURLOPT_TIMEOUTto a lower value, or monitor the time spent in executing your script yourself.