Re: Periodic refresh causing server "Read timed out"

Posted by ncrofts on
URL: https://discuss.orbeon.com/Periodic-refresh-causing-server-Read-timed-out-tp45294p45304.html

Alex,

Sorry about the delay in getting back to you. I've attached a zip file containing the simplest application I can reproduce the "Read timed out" problem with. test-page.zip

All this does is to auto-refresh the page every 30 seconds. The refresh calls a submission that just generates an instance with a counter + date/time + an arbitrary block of XML.

To reproduce I just added the files to the apps folder of the standard orbeon.war and then navigate to the test page and leave it refreshing. Eventually (after several hours sometimes) I get the "Read timed out" error.

I would be interested to find out if you also see the problem too. For information, I find the problem to be more frequent when running the on a remote servers i.e. not on my local network.

Also, any further thoughts you may have on how to track this further would be appreciated, as it is a problem I would rather not go into production with.

By the way, thanks for confirming the auto-refresh code was ok.

Regards,
Neil


Alessandro Vernet wrote
Neil,

ncrofts wrote
One of the things that we were wondering was if the way we are auto-refreshing pages may be contributing to the problem (see below)? We use the following pattern on pages that we wish to auto-refresh every 30 seconds. Is this an appropriate way to achieve that, or is there a simpler way?
Really, that code looks fine to me. Please let us know when you have a test case for this. I will be curious to test this out.

Alex