admin管理员组文章数量:1296254
First, I want to make clear that I am not talking about this question How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers? , which is about simultaneous requests.
Instead, I want know if there is a limit on the number of pending ajax requests, before the browser potentially starts cancelling them or throwing errors.
Running some simple tests, I've seen that when the limit of about 6 simultaneous requests is hit, the browser will start queuing requests in a graceful manner. Once a 'slot' bees available, it is used and a new request is sent to the server.
I have also seen that Chrome, Firefox and even IE will gracefully handle a queue of about 100 requests.
First, I want to make clear that I am not talking about this question How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers? , which is about simultaneous requests.
Instead, I want know if there is a limit on the number of pending ajax requests, before the browser potentially starts cancelling them or throwing errors.
Running some simple tests, I've seen that when the limit of about 6 simultaneous requests is hit, the browser will start queuing requests in a graceful manner. Once a 'slot' bees available, it is used and a new request is sent to the server.
I have also seen that Chrome, Firefox and even IE will gracefully handle a queue of about 100 requests.
Share Improve this question edited May 23, 2017 at 12:03 CommunityBot 11 silver badge asked Aug 19, 2011 at 18:16 DanCDanC 8,8159 gold badges46 silver badges64 bronze badges 6- 4 as you're already testing aren't you the best person to answer this question? – tomfumb Commented Aug 19, 2011 at 18:19
- 1 I would guess that memory is the only limitation. I don't think there is much of a resource impact of queued requests. I guess testing-to-destruction will be the only way to know for sure. – Diodeus - James MacFarlane Commented Aug 19, 2011 at 18:43
- This : stackoverflow./questions/561046/… – yaka Commented Aug 20, 2011 at 0:37
-
5
As per firefox 3.6.18 config , the
network.http.max-connections
is 30 ,network.http.max-connections-per-server
is 15,network.http.max-persistent-connections-per-server
is 6,network.http.pipelining.maxrequests
is 4 . From this can you find something??? I'm not sure what this is about! – Vijay Commented Aug 23, 2011 at 11:21 - 1 I'm not sure I understand your distinction between 'simultaneous' requests and 'pending' requests..if a request hasn't pleted, then it is open, and hence by definition is 'simultaneous' with any requests open at the same time. If I did misunderstand something could you clarify please? – boycy Commented Aug 23, 2011 at 21:22
1 Answer
Reset to default 2I also guess that it's indicated from maximum number of current opened connection and here's the situation in IE Max-Connections and this thread also may help How many concurrent AJAX requests are allowed in popular browsers?
本文标签: javascriptHow many PENDING ajax requests are allowed in modern browsersStack Overflow
版权声明:本文标题:javascript - How many PENDING ajax requests are allowed in modern browsers? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741634159a2389543.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论