Posted by
ncrofts on
URL: https://discuss.orbeon.com/Periodic-refresh-causing-server-Read-timed-out-tp45294p45302.html
Hi Alex,
Yes we are trying to reproduce this as a minimal example and will post a scenario as soon as we can.
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?
We don't think what is in the "get-form-data' XPL pipeline makes a difference to the "read timed out" issue, but we have noticed if the pipeline takes a long time, then the page refreshes can stop. Is that expected behaviour?
Anyway, we'll try and produce that example, but in the meantime would appreciate your insight into the above questions in case that sheds some light on the "read timed out" problem as well.
<xforms:model id="main-model" xxforms:external-events="auto-refresh">
<xforms:instance id="form-data">
<form>
<data/>
</form>
</xforms:instance>
<xxforms:script ev:event="xforms-model-construct-done">
ORBEON.xforms.Document.dispatchEvent("main-model", "auto-refresh");
</xxforms:script>
<xforms:dispatch ev:event="auto-refresh" delay="30000" name="refresh" target="main-model"/>
<xforms:action ev:event="refresh">
<xforms:send submission="refresh-form"/>
<xforms:dispatch delay="30000" name="refresh" target="main-model"/>
</xforms:action>
<xforms:submission id="refresh-form" ref="instance('form-data')" method="post" replace="instance" instance="form-data" resource="get-form-data"/>
</xforms:model>
Regards,
Neil
Alessandro Vernet wrote
Neil,
ncrofts wrote
I've tried Tomcat 5.5 and the problem still occurs (see stack trace below).
Thank you for testing this on Tomcat 5.5 well. Is there any chance that you could create a simple/minimal reproducible test case that you could share with us on this list, so we can investigate the issue further?
Alex