Tim, that's an http client-side timeout, so I don't think it makes sense to configure it at the http server level. Rather, wouldn't you want to change it on a per-request basis?

In fact that's how it's done. There's a timeout option in the function call (http://developer.marklogic.com/pubs/4.1/apidocs/Ext-2.html#xdmp:http-get):

<timeout>
The amount of time, in seconds, to wait until the HTTP connection times
out. The default value is the request timeout for the group.

So you can increase this directly on a per-request basis. You can also tune the default in the group configuration ("http timeout", default 60).

-- Mike

On 2010-04-26 10:34, Tim Meagher wrote:
Hi Folks,

I'm apparently receiving a socket receive timeout error message:

2010-04-26 13:06:42.893 Info: TaskServer:<error:code>SVC-SOCRECV</error:code>
2010-04-26 13:06:42.893 Info: TaskServer:<error:name/>
2010-04-26 13:06:42.893 Info: 
TaskServer:<error:xquery-version>1.0-ml</error:xquery-version>
2010-04-26 13:06:42.893 Info: TaskServer:<error:message>Socket receive 
error</error:message>
2010-04-26 13:06:42.893 Info: TaskServer:<error:format-string>SVC-SOCRECV: 
xdmp:set($match-results, xdmp:http-post("http://blahbahblah)) -- Socket receive error: wait 
127.0.0.1:42044-127.0.0.1:9025: Timeout</error:format-string>

I know this can be caused by the http-post taking a while to process larger 
sets of information.  My options are either:


  1.  Increasing the socket receive timeout, or
  2.  Breaking the request into smaller pieces.

Is there a simple way to change the socket receive timeout for a specific HTTP 
server?  I don't see that as a configuration item.

Thank you!

~ Tim Meagher



_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to