PDA

View Full Version : Timeout on HTTP requests


sfarrow
11-04-2003, 07:37 AM
Executing an HTTP request from a dataset coded like this:


<dataset name="queryDS" request="false" type="http" src="http://localhost:8080/app/laszlo/query/execute"
ondata="debug.write('query succeeded')"
onerror="debug.write('query failed"/>


When the request is fullfilled by the web service within a few seconds all works fine. When the web service takes longer (around 1 minute), the request times out and I see the following on the Jetty console:

- Recoverable exception caught but MethodRetryHandler.retryMethod() returned false, rethrowing exception
- retrying a recoverable exception: java.net.SocketTimeoutException: Read timed out
- com.laszlosystems.data.DataSourceException: http://localhost:8080/app/laszlo/query/execute?chunkParam=xmlArg&chunkState=done&chunk=%27%27 timed out
- Responding with error SWF: http://localhost:8080/app/laszlo/query/execute?chunkParam=xmlArg&chunkState=done&chunk=%27%27 timed out

Not sure what is initiating the timeout (Laszlo/Jetty) and how I can control the length of the timeout to accommodate my longer requests.

Any insight and assistance would be greatly appreciated.

Steve.

antun
11-04-2003, 08:00 AM
Try upping the back-end timeout. In:

WEB-INF/lps/config/lps.properties

... uncomment this line:


#http.backendTimeout=5000


And increase the number from 5000 (5 seconds) to something larger (e.g. 30 seconds or 60 seconds - 30000 or 60000).

-Antun

sfarrow
11-04-2003, 08:34 AM
Damn you're good!

I had not seen this property before. Looks like it came to be with the 1.0.2 release.

Thanks.

Steve.

antun
11-04-2003, 08:37 AM
That was just a fluke really - I came across a couple of timeout issues myself last week while working on an internal project.

Damn you're good!