Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Concurrent Ajax requests in Chrome

I have read limitation on concurrent ajax requests to a particular domain from chrome browser to be 6. Earlier I had tested and confirmed that. But now I see that even 100 requests are getting sent to the server from chrome browser concurrently and all are active at the same time. Refer screenshot Can someone guide if something has changed. I use chrome 72. I can assure you that the calls have indeed hit the server as I can see the required Database entries corresponding to the call. But earlier these calls would be in waiting mode until some previous call finished.

Update Some additional observations may or may not be relevant. I tested this with 2 servers - 1 has IIS 10 and this limitation is not seen. The other has IIS 8 where I can see that only 6 are sent to server at a time.

like image 810
ckv Avatar asked Mar 06 '19 04:03

ckv


People also ask

How do you handle concurrent AJAX requests?

JavaScipt closures can be used for handling concurrent requests. A function can be written to handle such requests. Once processing of code is over, URL and the call back function to call can be passed as parameters. These parameters are passed to the AJAXInteraction(url, callback) object.

How many concurrent requests can a browser handle?

Chrome has a limit of 6 connections per host name, and a max of 10 connections. This essentially means that it can handle 6 requests at a time coming from the same host, and will handle 4 more coming from another host at the same time.

How many XHR requests are allowed?

How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers? Bookmark this question. Show activity on this post. In Firefox 3, the answer is 6 per domain: as soon as a 7th XmlHttpRequest (on any tab) to the same domain is fired, it is queued until one of the other 6 finish.


1 Answers

This behaviour has not been changed for HTTP/1.1.

You can get more clear picture if you enable the WaterFall. If you see the waterfall, at one point of time only 6 request will get fired(sent to server) and rest all will be in pending mode.

Note, request with status "Pending" appearing in the network tab doesn't mean that the request is sent to the server.

Following is the screenshot from Version 74.0.3726.0

enter image description here

like image 95
PSK Avatar answered Oct 04 '22 15:10

PSK