NEW 116579
[Mac] XMLHttpRequest timeout is accounted for incorrectly - should be total time, not inactive time
https://bugs.webkit.org/show_bug.cgi?id=116579
Summary [Mac] XMLHttpRequest timeout is accounted for incorrectly - should be total t...
Alexey Proskuryakov
Reported 2013-05-21 14:52:30 PDT
XHR timeout attribute specifies how long the request may take. (At least) the Mac implementation is different, it only triggers a timeout if the connection is idle for this long. "Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed." "This implies that the timeout attribute can be set while fetching is in progress. If that occurs it will still be measured relative to the start of fetching."
Attachments
youenn fablet
Comment 1 2015-09-04 03:35:06 PDT
This might be covered as part of bug 98156.
Alexey Proskuryakov
Comment 2 2015-09-04 09:10:53 PDT
Sounds like it would be, but only for async requests, not for sync ones.
youenn fablet
Comment 3 2015-09-04 12:34:06 PDT
(In reply to comment #2) > Sounds like it would be, but only for async requests, not for sync ones. Right. For Soup and CURL, async calls to the underlying libraries are made within a sync loop. I do not know whether this is actually worth the effort but Mac may use a similar strategy.
Note You need to log in before you can comment on or make changes to this bug.