Connection timeouts
Posted: Fri Feb 12, 2010 6:33 pm
Hi,
I have a problem when attempting to connect to an extrernal web application from within an Author Operation. The external web app can take several minutes to return a result, and therefore I have set the readTimeout and connectionTimeout to be 10 minutes. Unfortunately my timeout values seem to be being ignored at some point in the connection stack as I get read timeout execptions after about 30s.
My suspicion is that the Oxygen connection classes are ignoring my timeout values; can you clarify whetever this is liekly to be happening?
An example of my connection code is:
the stack trace of the timeout exception is:
I have a problem when attempting to connect to an extrernal web application from within an Author Operation. The external web app can take several minutes to return a result, and therefore I have set the readTimeout and connectionTimeout to be 10 minutes. Unfortunately my timeout values seem to be being ignored at some point in the connection stack as I get read timeout execptions after about 30s.
My suspicion is that the Oxygen connection classes are ignoring my timeout values; can you clarify whetever this is liekly to be happening?
An example of my connection code is:
Code: Select all
hc = (HttpURLConnection) connection;
hc.setConnectTimeout(CONNECTION_TIMEOUT);
hc.setReadTimeout(CONNECTION_TIMEOUT);
responseCode = hc.getResponseCode(); < exzeption thrown here
Code: Select all
rg.apache.commons.httpclient.HttpException: Read timed out (http://XXX.XXX.XXX.XXX:XXXX/validate/;jsessionid=EA83830A80ECBA4D915F76EDA0AC35F4?wicket:interface=:1:repeater:97:chunk::ILinkListener::)
at ro.sync.net.protocol.http.A.A(Unknown Source)
at ro.sync.net.protocol.http.A.A(Unknown Source)
at ro.sync.net.protocol.http.A.A(Unknown Source)
at ro.sync.net.protocol.http.WebdavHttpURLConnection.getInputStream(Unknown Source)
at ro.sync.net.protocol.http.WebdavHttpURLConnection.getResponseCode(Unknown Source)
at uk.co.smg.acm.oxygen.framework.cobra.OxygenRenderContext.submitFormSync(OxygenRenderContext.java:241)
at org.lobobrowser.html.test.SimpleHtmlRendererContext$1.run(SimpleHtmlRendererContext.java:249)
Feb 12, 2010 3:30:46 PM org.lobobrowser.html.test.SimpleHtmlRendererContext warn