AJAX COMET Issue (IE7)
-
I have put together a COMET implementation in .NET and Javascript. The model uses a custom threadpool to keep things scalable, and everything on the serverside is functioning correctly... now im having a small issue.. I have tested the server on a page that does not include any assets, or very few, and now I am including some stylesheets and larger images on a style page, when the comet client kicks in it doesnt fully function until a little while after the page has loaded (say within 10 seconds) My model uses a single XMLHTTPRequest to wait for the poll (10 seconds on the server), and if I need to send a message, I cancel the first request, send the message and then poll again. When a poll times out, it restarts again. The problem symptoms occur when I open the page it begins to poll and then I pretty much immediatly send a message, which aborts the poll, and attempts to send the message. It now waits a little while before it completes. Once this period of "warming up" is over, it functions correctly. Im thinking IE is holding one of its 2 sockets open after the page has loaded the resources and this is causing the delay? Any ideas if this is fixable - or should I just work around it? the obvious workaround would be to limit sending messages until the first poll has finished? Thanks, James
James Simpson Web Developer imebgo@gmail.com P S - This is what part of the alphabet would look like if Q and R were eliminated
Mitch Hedberg