[Webkit-unassigned] [Bug 34485] New: xmlhttprequest does not free finished loading slots

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 2 09:00:33 PST 2010


           Summary: xmlhttprequest does not free finished loading slots
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jurekraben at googlemail.com

Created an attachment (id=47939)
 --> (https://bugs.webkit.org/attachment.cgi?id=47939)
Zip containing all needed files for reproduce this bug

If you start 4 xmlhttprequests with javascript in Safari, finished requests
will not free up a connection slot for the next xmlrequest.

In the example .zip you will find a "index.html" containing a javascript that
loads X times a xmlhttprequest targeting the file "ajax_response.php". There
will be also a flash movie "loader.swf" started that starts to stream a large
.mp3 file. The .mp3 file has to be named "large_testfile.mp3" and placed to the
bug dir. 20mb size for the mp3 worked great for me. 

You can change the timeout until the xmlhttprequests start, to ensure that the
flash streaming starts before. Also the number of xmlhttprequests can be 1-12.
You have to calibrate these settings.

If you call index.html, the following will happen in Safari:
- the flash movie starts to stream  the large mp3 and takes one (or more??)
download slots
- after 3 seconds the xmlrequests start. In my tests sometimes none, sometimes
2 xmlrequests start and finish.
- The finished request do not cause a newly free download slot. So the rest of
the xmlhttprequests have to wait until the flash movie has finished streaming.

Expected behaviour:
- flash movie starts stream
- some xmlhttprequest start and finish
- now again some xmlhttprequests start and finish until all are loaded, because
finished requests should free up a download slot on readystate==4...

If you try it in another browser, none of these will wait until flash streaming
has finished.

Here is a 20mb mp3 file:

All sources are included.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list