[Laszlo-dev] Re: How to tell if the server is alive,
without waiting for a timeout
P T Withington
ptw at pobox.com
Wed Oct 5 13:26:05 PDT 2005
What we really want is just to write the Debugger as a standalone,
but non-SOLO app, that you run connected to your development LPS and
then use the remote debugger protocol to attach to your SOLO app.
On 5 Oct 2005, at 15:59, Oliver Steele wrote:
> More in the spirit of brainstorming than as an actual proposal:
> At first I was thinking that SOLO deployment could include a stub
> file, say remote-debugger.xml. Then you can request this file; if
> you get a response, you're running SOLO.
> Then I thought that this file could contain the URL of an
> OpenLaszlo server to send the request to, so you can direct it to a
> debugger on your development machine even when running a SOLO app
> served by a different server. Heck, we could even run an
> OpenLaszlo server on OpenLaszlo.org with a crossdomain.xml file set
> up to accept this.
> We'd want to throttle it and otherwise limit the size of the
> requests to deny DoS, but this isn't as mission-critical a use as,
> say, hosting a commercial app.
> But Mark 3 of the idea is this: Document the debugger eval request
> protocol and the expected response, and then someone can write a
> php page that uses ming to provide full debugging support for SOLO
> On Oct 5, 2005, at 3:45 PM, Henry Minsky wrote:
>> I want to write some code in the debugger to try and figure out if
>> an LPS server is alive, so I can fall back to
>> a simpler mode of operation automatically that does not require a
>> round trip to the server.
>> One thing seems clear which is that if I just do a regular (non
>> SOLO-data) loader request, I cannot get any useful information
>> from the loadMovie() call that happens in
>> LzLoadQueue. Flash just doesn't return any status information if
>> the attempt to load fails, does it? We can only rely
>> on our own timeout code to tell us the load didn't work.
>> My current approach is for the debugger to do a probe when it
>> starts up, using LoadVars.sendAndLoad() to the URL where it
>> thinks the LPS server ought to be, and have a callback which
>> checks the status, because with this method you get an immediate
>> callback if there is a network error (i.e., connection refused).
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
More information about the Laszlo-dev