I have a PHP CLI script that continually times out, and I can't figure out the source of the timeout. Seemingly "randomly" the script will stop (with no PHP error in the logs) and give the following output to console:
timeout, elapsed_time = 60
I'm setting PHP's time limit via set_time_limit(0); intermittently but it doesn't seem to be making a difference.
Besides that, PHP is supposed to throw an error if it hits its timeout, and no error is thrown, so could this timeout be triggered by something other than PHP?
The script is started by a bash script ".sh" on a Ubuntu machine.
Thanks!
set_time_limit(0);- My hunch would be that it's something other than PHP itself (PHP does not generate an error that looks like the one you have posted, when the execution time limit is hit) - It's still possible that a component of your script is generating this output though.