I have a script that requires some intensive calculations every now and then. On apache, I simply use set_time_limit(0). But when doing this on litespeed it doesn't do anything and I get the 408 error ( as shown below ). If I use ob_flush() every few secs inside the script it works properly, but cannot change all the long running scripts to include a flush command. Is there a way to set "Connection Timeout" from within a php script? Because I do not want to raise that value for the entire server, but only for a select few files.
"408 Request Time-out
This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'."