[Laszlo-dev] [Laszlo-user] setting timeout to longer than 30 seconds
Henry Minsky
henry.minsky at gmail.com
Thu Dec 27 12:54:06 PST 2007
Here is the flow of control for SWF data request in LPS 4
+ The constructor for LzDataset sets its timeout in this code:
if ('timeout' in args && args.timeout) {
this.timeout = args.timeout;
} else {
this.timeout = canvas.dataloadtimeout;
}
So it default to the value of the canvas.dataloadtimeout, if no
explicit timeout init arg
is passed in.
+ In the LPS 4 world where we have the new LzHTTPDataProvider, the timeout
is passed along by LzHTTPDataProvider .doRequest() to the SWF kernel
LzHTTPLoader object
tloader.setTimeout(dreq.timeout);
+ This timeout gets passed in to the good old LzLoader kernel object, which gets
then gets passed to the LzLoadQueue service.
LzHTTPLoader.prototype.setTimeout = function (timeout) {
this.timeout = timeout;
this.lzloader.timeout = timeout;
}
+ The LzLoader creates a "load request object", which happens to be a
Flash native XML object, and it sets the "timeout" property to the
LzLoader's timeout value.
+ Then the "load object" is passed to LzLoadQueue, which is
responsible for actually sending the data requests. The timeout
property is used to checked
by a delegate which is triggered by an LzTimer event.
On Dec 27, 2007 3:42 PM, Sarah Allen <sallen at laszlosystems.com> wrote:
> what does this do "under the hood" and will it apply to a Flash Upload
> request which is not currently supprted by OpenLaszlo but which we do
> with a custom compoent which embeds ActionScript?
>
> Thanks,
> Sarah
>
More information about the Laszlo-dev
mailing list