Search code examples
pythonapachetimeout

Web page doesn't generate output for three minutes and dies. Where is the connection dying?


I have a python script that generates a web page. The script does not generate any output at all for at least three minutes, so the browser stops before the page loads.

Where is this timeout occurring? Is it the browser giving up? Is it Apache serving the page timing out?

More importantly, is there a way to control this timeout to allow the page to load?

My workaround is to have a space character sent to the browser every 30 seconds or so to keep the page alive, but that is an ugly hack.

Running Apache 2.4.6 on Red Hat Enterprise 7.6 with Python 3.7.


Solution

  • Thank you.

    It was as simple as adding a TimeOut value to the httpd.conf file and restarting the httpd service.