Comet and Simultaneous Ajax request
- by Amitd
Hi ,
I am trying to use a COMET solution using ASP.NET .
Trouble is i want to implement sending and notification part in the same page.
On IE7, whenever i try to send a request ,it just gets queued up.
After reading on internet and stackoverflow pages i found that i can only do 2 simultaneous asyn ajax requests per page.
So until i close my comet Ajax request,my 2nd request doesnt get completed ,doesnt even go out from the browser. And when i checked with Firefox i just one Ajax comet request running all time..so doesnt that leave me one more ajax request?
Also the solution uses IRequiressessionstate for Asynchronous HTTP Handler which i had removed.but still it creates problems on multiple instances of IE7.
I had one work around which is stated here http://support.microsoft.com/kb/282402
it means we can increase the request limit from registry by default is 2.
By changing "MaxConnectionsPer1_0Server" key
in hive "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
we can increase the number of requests.
Basically i want to broadcast information to multiple clients connected to a server using Comet and the clients can also send messages to the Server.
Broadcasting works but the send request back to server doesnt work.
Im using IIS 6 and ASP.NET .
Are there any more workarounds or ways to send more requests?
References :
http://stackoverflow.com/questions/561046/how-many-concurrent-ajax-xmlhttprequest-requests-are-allowed-in-popular-browser
http://stackoverflow.com/questions/349381/ajax-php-sessions-and-simultaneous-requests
http://stackoverflow.com/questions/2412807/jquery-ajax-request-blocked-by-long-running-ajax-request
http://stackoverflow.com/questions/898190/jquery-making-simultaneous-ajax-requests-is-it-possible