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