24

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' becomes 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.

Community
  • 1
  • 1
DanC
  • 8,595
  • 9
  • 42
  • 64
  • 4
    as you're already testing aren't you the best person to answer this question? – tomfumb Aug 19 '11 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 Aug 19 '11 at 18:43
  • This : http://stackoverflow.com/questions/561046/how-many-concurrent-ajax-xmlhttprequest-requests-are-allowed-in-popular-browser – yaka Aug 20 '11 at 00: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 Aug 23 '11 at 11:21
  • 1
    I'm not sure I understand your distinction between 'simultaneous' requests and 'pending' requests..if a request hasn't completed, 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 Aug 23 '11 at 21:22
  • @boycy according to the OP's post, the browsers make 6 simultaneous requests before queuing them. The # of queued/pending requests seems to be the question – badunk May 11 '12 at 22:55

1 Answers1

2

I 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?

Community
  • 1
  • 1
Mina Kolta
  • 1,551
  • 2
  • 12
  • 22