function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JimmmyJimmmy 

remoteFunction Timeout not working?!

We are using the remoteFunction and we have set a timeout but it still defaults to the 10 second timeout? 
Here is the code we are using.
 
sforce.connection.remoteFunction({ url : url,
timeout : 60000,
method: "POST",
requestData: template,
async: false,
requestHeaders: { "Content-Type": "text/xml","SOAPAction": https://www.ourwebsite.com},
    onSuccess : function(response) { message = response;},
    onFailure : function(error) { alert(error); }});
 
we pass in XML and retrieve XML as a response.  It works great until we have a larger sized XML
being sent and then we run into issues.  The server is receiving the data and the remoteFunction
is not paying attention to the timeout call. So we get
 
<html>
<head><title>400 Unable to forward request due to: Read timed out</title></head>
<body>
<h1>400 Unable to forward request due to: Read timed out</h1>
<p /><hr />
<small>
Resin-3.0.12 (built Wed, 23 Feb 2005 10:29:38 PST)
</small>
</body></html> 
 
Does anybody have any ideas or know of any work a rounds... Any help will be greatly appreacheated.
Ron HessRon Hess
The remoteFunction timeout is not configurable, it is always 10 seconds
blntblnt
Really?!?

The AJAX doc I am looking at (Version 12.0) says on p. 33 that this property is valid.

If so, can we at least get the doc updated?

Thanks,


Bao-Long