Ravi
Ravi

Reputation: 1179

CPF throwinng SVC-SOCRECV: xdmp:http-post

I have a CPF task which does an xdmp:http-post and I am getting socket receive error: wait 10.239.12.22:53501-10.239.12.38:8080: Timeout (decodeResponseLine1)
When I do the same xdmp:http-post in query console I am not getting the socket receive error.. I tried setting xdmp:set-request-time-limit(600) before calling the xdmp:http-post but still does not work it seems to timeout around 1 min.. I also tried

let $config := admin:get-configuration()
   let $groupid := admin:group-get-id($config, "Default")
 admin:appserver-set-request-timeout($config, admin:appserver-get-id($config, $groupid, "content-repo"), 600)


but did not work.. Is there anything that I a missing ??

Upvotes: 0

Views: 243

Answers (1)

grtjn
grtjn

Reputation: 20414

The request time limit is for the code that you are running itself. Xdmp http calls default to the http limit, but you can also override that via the <timeout> option to the method. See xdmp:http-get for details:

http://docs.marklogic.com/xdmp:http-get

HTH!

Upvotes: 2

Related Questions