No, the code in rpc.js does not have the timeout setting code in it, my earlier email explained where to add it. <br><br>I&#39;ll send a patch with my idea for you to test. <br><br><div class="gmail_quote">2009/6/9 ono keiji <span dir="ltr">&lt;<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You mean rpc.js is not all for this ?<br>
<br>
Henry Minsky $B$5$s$O=q$-$^$7$?(B:<br>
<div class="im">&gt; I&#39;ll make up a patch you can try out.<br>
&gt;<br>
&gt;<br>
</div>&gt; 2009/6/9 ono keiji &lt;<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a> &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a>&gt;&gt;<br>
<div><div></div><div class="h5">&gt;<br>
&gt; &nbsp; &nbsp; Hi Henry,<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;I tried them.<br>
&gt; &nbsp; &nbsp; &nbsp;I tried it call in &lt;script&gt; tag with LzRPC.setTimeout() or in<br>
&gt; &nbsp; &nbsp; &lt;soap&gt; tag with this.setTimeout().<br>
&gt; &nbsp; &nbsp; &nbsp;But both of them, my test code said &#39;call to undefined method<br>
&gt; &nbsp; &nbsp; setTimeout&#39;.<br>
&gt; &nbsp; &nbsp; &nbsp;How can i call it from a application ?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; Henry Minsky $B$5$s$O=q$-$^$7$?(B:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; It looks like I forgot to put in the code that sets the timeout,<br>
&gt; &nbsp; &nbsp; when I<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; updated the<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; code last time.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; There is an object called LzRPCDataRequest, which is a subclass of<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; LzHTTPDataRequest. It is defined in the file<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; lps/components/rpc/library/rpc.js<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; The LzRPCDataRequest can take a timeout property. However, nothing is<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; setting it right now.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; In the xmlrpc.js file (that defines the XMLRPC service), the code<br>
&gt; &nbsp; &nbsp; does<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; set the timeout as<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; requestObj.timeout = canvas.dataloadtimeout;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; So that service will default to that canvas value.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; However, the JavaRPC and SOAP request() methods are not setting the<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; timeout.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; We should define an API method on LzRPC that sets the timeout that is<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; used in the request() method. I would propose having a default<br>
&gt; &nbsp; &nbsp; timeout<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; value as an instance var in LzRPC, and a method to modify it<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; class LzRPC {<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; var defaulttimeout = 30000;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; function setTimeout(msec) { this.defaulttimeout = msec; }<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; ...<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; ...<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; }<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; Then in the request() method, that value would be copied to the<br>
&gt; &nbsp; &nbsp; datarequest<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; function request ( dreq:LzRPCDataRequest, delegate, secure,<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; secureport ) {<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; ...<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; ...<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; dreq.timeout = this.defaulttimeout<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; Can you try this and see if it works?<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; If you get something working, or even if you don&#39;t file a bug<br>
&gt; &nbsp; &nbsp; &nbsp;for this,<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; I will try to take a look at it as soon as I finish a couple of high<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; priority bugs that I am working on for our next release.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; On Tue, Jun 9, 2009 at 4:13 AM, ono keiji &lt;<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a><br>
&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a>&gt;<br>
</div></div><div class="im">&gt; &nbsp; &nbsp; &nbsp;&gt; &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a> &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a>&gt;&gt;&gt; wrote:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; Are not you have any info?<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; It seems like a application timeout could controlled by<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; http.backendTimeout/http.backendConnectionTimeout<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;which are in lps.properties. But what are their mean ? What is<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; difference between backendTmeout and<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; backendConnectionTimeout ?<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; ono keiji $B$5$s$O=q$-$^$7$?(B:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; ------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Subject:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; [Laszlo-dev] how to set soap timeout<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; From:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; ono keiji &lt;<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a><br>
</div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a>&gt; &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a><br>
<div class="im">&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a>&gt;&gt;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Date:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Thu, 21 May 2009 20:47:58 +0900<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; To:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:laszlo-dev@openlaszlo.org">laszlo-dev@openlaszlo.org</a><br>
</div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:laszlo-dev@openlaszlo.org">laszlo-dev@openlaszlo.org</a>&gt; &lt;mailto:<a href="mailto:laszlo-dev@openlaszlo.org">laszlo-dev@openlaszlo.org</a><br>
<div class="im">&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:laszlo-dev@openlaszlo.org">laszlo-dev@openlaszlo.org</a>&gt;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; To:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:laszlo-dev@openlaszlo.org">laszlo-dev@openlaszlo.org</a><br>
</div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:laszlo-dev@openlaszlo.org">laszlo-dev@openlaszlo.org</a>&gt; &lt;mailto:<a href="mailto:laszlo-dev@openlaszlo.org">laszlo-dev@openlaszlo.org</a><br>
<div class="im">&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:laszlo-dev@openlaszlo.org">laszlo-dev@openlaszlo.org</a>&gt;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Hi,<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Could someone tell me how to set a timeout parameter when<br>
&gt; &nbsp; &nbsp; using<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; rpc/soap<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; on v.4.3 ?<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; on v.3.*, i could control it at getNewLoader() in rpc.js,<br>
&gt; &nbsp; &nbsp; but i saw<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; it had gone away somewhere now.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Ono Keiji<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:ono@net8.co.jp">ono@net8.co.jp</a> &lt;mailto:<a href="mailto:ono@net8.co.jp">ono@net8.co.jp</a>&gt;<br>
</div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:ono@net8.co.jp">ono@net8.co.jp</a> &lt;mailto:<a href="mailto:ono@net8.co.jp">ono@net8.co.jp</a>&gt;&gt;<br>
<div class="im">&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; --<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; ------------------------------------------<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; $B!J3t!K%M%C%H%(%$%H(B<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; $B>.Ln7=Fs(B<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; <a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a> &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a>&gt;<br>
</div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a> &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a>&gt;&gt;<br>
<div class="im">&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; $BEl5~ET9>8M@n6h?p9>(B1-45-11<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; TEL 03(3676)6599<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; URL <a href="http://www.net8.co.jp" target="_blank">http://www.net8.co.jp</a><br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; ------------------------------------------<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; --<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; Henry Minsky<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; Software Architect<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a> &lt;mailto:<a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a>&gt;<br>
</div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a> &lt;mailto:<a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a>&gt;&gt;<br>
<div><div></div><div class="h5">&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; --<br>
&gt; &nbsp; &nbsp; ------------------------------------------<br>
&gt; &nbsp; &nbsp; $B!J3t!K%M%C%H%(%$%H(B<br>
&gt; &nbsp; &nbsp; $B>.Ln7=Fs(B<br>
&gt; &nbsp; &nbsp; <a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a> &lt;mailto:<a href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a>&gt;<br>
&gt; &nbsp; &nbsp; $BEl5~ET9>8M@n6h?p9>(B1-45-11<br>
&gt; &nbsp; &nbsp; TEL 03(3676)6599<br>
&gt; &nbsp; &nbsp; URL <a href="http://www.net8.co.jp" target="_blank">http://www.net8.co.jp</a><br>
&gt; &nbsp; &nbsp; ------------------------------------------<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Henry Minsky<br>
&gt; Software Architect<br>
&gt; <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a> &lt;mailto:<a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a>&gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>