No, the code in rpc.js does not have the timeout setting code in it, my
earlier email explained where to add it.

I'll send a patch with my idea for you to test.

2009/6/9 ono keiji <[email protected]>

> You mean rpc.js is not all for this ?
>
> Henry Minsky さんは書きました:
> > I'll make up a patch you can try out.
> >
> >
> > 2009/6/9 ono keiji <[email protected] <mailto:[email protected]>>
> >
> >     Hi Henry,
> >
> >      I tried them.
> >      I tried it call in <script> tag with LzRPC.setTimeout() or in
> >     <soap> tag with this.setTimeout().
> >      But both of them, my test code said 'call to undefined method
> >     setTimeout'.
> >      How can i call it from a application ?
> >
> >
> >
> >     Henry Minsky さんは書きました:
> >      > It looks like I forgot to put in the code that sets the timeout,
> >     when I
> >      > updated the
> >      > code last time.
> >      >
> >      > There is an object called LzRPCDataRequest, which is a subclass of
> >      > LzHTTPDataRequest. It is defined in the file
> >      > lps/components/rpc/library/rpc.js
> >      >
> >      > The LzRPCDataRequest can take a timeout property. However, nothing
> is
> >      > setting it right now.
> >      >
> >      > In the xmlrpc.js file (that defines the XMLRPC service), the code
> >     does
> >      > set the timeout as
> >      >
> >      >     requestObj.timeout = canvas.dataloadtimeout;
> >      >
> >      > So that service will default to that canvas value.
> >      >
> >      > However, the JavaRPC and SOAP request() methods are not setting
> the
> >      > timeout.
> >      >
> >      >
> >      > We should define an API method on LzRPC that sets the timeout that
> is
> >      > used in the request() method. I would propose having a default
> >     timeout
> >      > value as an instance var in LzRPC, and a method to modify it
> >      >
> >      >
> >      > class LzRPC {
> >      >
> >      > var defaulttimeout = 30000;
> >      >
> >      > function setTimeout(msec) { this.defaulttimeout = msec; }
> >      > ...
> >      > ...
> >      > }
> >      >
> >      > Then in the request() method, that value would be copied to the
> >     datarequest
> >      >
> >      >     function request ( dreq:LzRPCDataRequest, delegate, secure,
> >      > secureport ) {
> >      > ...
> >      > ...
> >      > dreq.timeout = this.defaulttimeout
> >      >
> >      >
> >      > Can you try this and see if it works?
> >      >
> >      > If you get something working, or even if you don't file a bug
> >      for this,
> >      > I will try to take a look at it as soon as I finish a couple of
> high
> >      > priority bugs that I am working on for our next release.
> >      >
> >      > On Tue, Jun 9, 2009 at 4:13 AM, ono keiji <[email protected]
> >     <mailto:[email protected]>
> >      > <mailto:[email protected] <mailto:[email protected]>>>
> wrote:
> >      >
> >      >     Are not you have any info?
> >      >     It seems like a application timeout could controlled by
> >      >     http.backendTimeout/http.backendConnectionTimeout
> >      >      which are in lps.properties. But what are their mean ? What
> is
> >      >     difference between backendTmeout and
> >      >     backendConnectionTimeout ?
> >      >
> >      >
> >      >
> >      >
> >      >     ono keiji さんは書きました:
> >      >
> >      >
> >      >
> >      >
> >
> ------------------------------------------------------------------------
> >      >
> >      >         Subject:
> >      >         [Laszlo-dev] how to set soap timeout
> >      >         From:
> >      >         ono keiji <[email protected]
> >     <mailto:[email protected]> <mailto:[email protected]
> >     <mailto:[email protected]>>>
> >      >         Date:
> >      >         Thu, 21 May 2009 20:47:58 +0900
> >      >         To:
> >      >         [email protected]
> >     <mailto:[email protected]> <mailto:[email protected]
> >     <mailto:[email protected]>>
> >      >
> >      >         To:
> >      >         [email protected]
> >     <mailto:[email protected]> <mailto:[email protected]
> >     <mailto:[email protected]>>
> >      >
> >      >
> >      >         Hi,
> >      >
> >      >         Could someone tell me how to set a timeout parameter when
> >     using
> >      >         rpc/soap
> >      >         on v.4.3 ?
> >      >         on v.3.*, i could control it at getNewLoader() in rpc.js,
> >     but i saw
> >      >         it had gone away somewhere now.
> >      >
> >      >         Ono Keiji
> >      >         [email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>
> >      >
> >      >
> >      >
> >      >
> >      >     --
> >      >     ------------------------------------------
> >      >     (株)ネットエイト
> >      >     小野圭二
> >      >
> >      >     [email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]>>
> >      >     東京都江戸川区瑞江1-45-11
> >      >     TEL 03(3676)6599
> >      >     URL http://www.net8.co.jp
> >      >     ------------------------------------------
> >      >
> >      >
> >      >
> >      >
> >      > --
> >      > Henry Minsky
> >      > Software Architect
> >      > [email protected] <mailto:[email protected]>
> >     <mailto:[email protected] <mailto:[email protected]
> >>
> >      >
> >      >
> >
> >
> >     --
> >     ------------------------------------------
> >     (株)ネットエイト
> >     小野圭二
> >     [email protected] <mailto:[email protected]>
> >     東京都江戸川区瑞江1-45-11
> >     TEL 03(3676)6599
> >     URL http://www.net8.co.jp
> >     ------------------------------------------
> >
> >
> >
> >
> > --
> > Henry Minsky
> > Software Architect
> > [email protected] <mailto:[email protected]>
> >
> >
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to