It appears that Firefox is handling the requestQueue different that all other
browsers. And I'm running out of ideas how to compensate that.

It's like this: I'm writing a chat application with ajax long polling. That
means one request is always running for 30 seconds to check if something is
happening on the server. If I do some other requests in the meantime, I have
to wait until the 30 secs are over until the "completed" event happens to
the other requests. Although I can see the respone immediately in Firebug.

Here's an example. You can paste that in the qooxdoo playground. I've
prepared a php file that answers within optional times:

------------------------

var requests = new qx.type.BaseArray();

for (var i=0;i<3;i++)
{
  var req = new qx.io.remote.Request("","GET", "text/javascript");
  req.setCrossDomain(true);
  req.setTimeout(15000);

  req.addListener("timeout", function(e){
    this.debug("timeout");
  });

  req.addListener("changeState", function(e){
    this.debug(e.getData());
  });

  req.addListener("completed", function(e){
        var resp = e.getContent();
                this.debug(resp);
  });
  
  requests.push(req)
}

//Make 10 second request
requests[0].setUrl("http://migoun.bplaced.net/test.php?wait=10";);
requests[0].send();

//Make 1 second request
requests[1].setUrl("http://migoun.bplaced.net/test.php?wait=1";);
requests[1].send();

//Make another 1 second request
requests[2].setUrl("http://migoun.bplaced.net/test.php?wait=1";);
requests[2].send();

--------------------------------------

In the log you can see that all requests are started at the same time. In
Safari / IE, requests[1 & 2] respond after 1 second. After 10 seconds,
request[0] responses. That's how it should be.
But Firefox responses like "first in, first out". So only if the first 10
second request is over, the other ones are handled.

Does anyone know this problem?

-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/qx-io-remote-Request-bug-in-Firefox-tp6075207p6075207.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to