I have an ASP.NET MVC project running on my developer's machine with Windows 7 ultimate and iis 7.5.
I do the following:
var requests = ["http://myserver.com/news/details/113834", "http://myserver.com/tag/details?ids=113834&entityType=23", "http://myserver.com/publish/details?ids=113834&entityType=23", "http://myserver.com/generalproperty/details?ids=113834&entityType=23", "http://myserver.com/category/details?ids=113834&entityType=23"]; var f = new Date().getTime(); $.each(requests, function(k,v) { $.ajax({ url :v, async : true, type :'get', success : function(data) { console.log(new Date().getTime() -f ); }}); })
Then I get the following results (approximately) 12, 521, 1025, 1550, 2067 async result http://martinhansen.no/hostedimages/async.PNG
If I switch async to false, I get: 14,32,49,58,68 synchronization result http://martinhansen.no/hostedimages/sync.PNG
It seems that the requests are in the queue, and after a while it responds only every 500 seconds. I made my controllers return empty text instead of calling the database, so not the database.
Is there a limitation on IIS 7.5 for Windows 7? Can I change the setting? I suspect the maximum number of simultaneous requests per user or something like that. And then it βpunishesβ you, responding only every 500 ms. So that people do not use it as a real server.
Likely? And is there a way to avoid this?
Martin hansen
source share