Ticket #5280 (closed bug: fixed)
AJAX requests should abort on unload (they reserve connections in IE)
|Reported by:||bkrausz||Owned by:|
There is a bug in IE (seen in 7, heard about in others) where AJAX requests that are open when the window is closed still reserve connections. This means that if you open and close two windows using long-polling, the next time you open a page on that domain it will hang forever. The only fix is to restart IE.
The fix for this is to add an unload event that aborts the requests (in IE7 at least, I read that IE6 does not have such a mechanism). I see no reason not to do this, but wanted to get feedback before writing a patch.
Also need a test case, but it should be fairly simple to write (I'll try to get to it tomorrow)...just make an AJAX request to a page that sleeps forever. Refresh the page twice and watch the IE death.