I have a PERL script in cgi-bin and delivered via apache that creates a PDF file from a set of XML files. Long story short... it takes a little while and my browser reports a 504 Gateway Time-out
error before it completes.
I don't want to increase the default timeout in my apache config, but I do want to increase the timeout for the sake of this one script which is accessible only by admins who are properly authenticated.
Is there a command I can add to the PERL cgi script that will increase the timeout?
In PHP there are the commands set_time_limit($n)
and ini_set('max_execution_time', $n);
I'm looking for the PERL equivalent if there is one.