I have been developing my application using LPS so that I can debug, 
etc.  As a first step to moving toward deployment I added 
proxied="false" to canvas and things seemed to continue to work fine.  
When I precompile my application and run in Tomcat without LPS my 
application seems to work, but with one major issue.  Some of the 
requests that I initiate after startup are not sent to the server 
immediately there is a delay of about 30 seconds before they are sent.  
I put in the code shown at the end of this message to print out some 
information about the LzLoadQueue every 2 seconds to see what was 
happening.  What I see is that there are a couple of objects in 
LzLoadQueue.loading that are taking about 30 seconds to go away - and my 
other requests are queued up behind those.  So I'm trying to figure out 
what those requests are that are holding things up.  They don't seem to 
have a dataset associated with them, so I'm just printing out the 
stringified object and I get names 
like"_level0.$m3.$m1.$m2.$m4.$m0.$m3.$m2.$m0.$m4.$m0.$m0".  Anyone know 
how to decode these names?  Or is there some other way to find out what 
is getting stuck loading?

--- begin code ---

<method name="showLoadQueue"><![CDATA[
    Debug.write("maxOpen: " + LzLoadQueue.maxOpen);
    Debug.write("openConx: " + LzLoadQueue.openConx);
    var loading = LzLoadQueue.loading;
    for (var i = 0; i < loading.length; ++i) {
        var r = loading[i];
        if (r["dataset"] == undefined) {
            Debug.write("loading: " + r);
        } else {
            Debug.write("loading: " + r.dataset.src);
        }
    }
    var listofqs = LzLoadQueue.listofqs;
    Debug.write("qs: " + listofqs.length);
    for (var i = 0; i < listofqs.length; ++i) {
        var q = listofqs[i];
        Debug.write("q: " + q.length);
        if (q != undefined) {
            for (var j = 0; j < q.length; ++j) {
                Debug.write(q[j]);
            }
        }
    }
    LzTimer.addTimer(new LzDelegate(this, "showLoadQueue"), 2000);
]]></method>
<method event="oninit">
    showLoadQueue();
</method>

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to