I am getting a peculiar problem. Apache closes connection after 12 seconds or so. This leads to a "connection reset by peer" message on the browser.
I am on Linux Centos 5. Using apache2/php5.x/mod_gzip. (php with eAccelerator)
I tested some variations:
- Usually, I will print all the HTML output as the last step. It always closes connection when the processing time goes above 12 seconds.
- If the print happens quicker ( < 12 secs ), connection is not closed and I get the page on the browser.
- If I print something regularly (every second or so), the connection is not closed even if the processing time goes above 12 secs.
What could be the possible issue here? Any suggestions on fixing this issue?
Edit - More details:
- apache access-log shows status code is 200.
- TimeOut directive is set. Timeout value is set at 60.
- php.ini: max_execution_time is set at 30 secs.
- client and server on different machines. It is a direct connection (
no proxies in betweenEdit2: The ISP routes all requests through its proxy.). - Apache is standalone.