I have a perl cgi code has to run for 25 minutes.
So I need to enlarge Apache TimeOut directive.
1.Fail, I tried to change httpd-default.conf TimeOut from 300 to 3000
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300
I save httpd-default.conf file, restart Apache, and rerun my perl code.
I still got "Internal Server Error".
2.Succeed, this time I add
TimeOut 3000
to my virtual host configuration like
ServerName abc.com
ServerAdmin mike@mikefavor.dyndns.org
Timeout 360000
... ...
I save httpd.conf file, restart Apache, and rerun my perl code.
I make it, my code is successfully finished and I got the response from browser which I expect.
Reference links which help to solve my above problem:
1.http://support.microsoft.com/kb/813827
2.http://httpd.apache.org/docs/2.2/mod/core.html#timeout
3.http://httpd.apache.org/docs/2.2/
4.a persistent http connection
5.So it must be my httpconfi issue
6.How to test network faq
7.Add timeout in virtual host config
No comments:
Post a Comment