Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. AJAX COMET Issue (IE7)

AJAX COMET Issue (IE7)

Scheduled Pinned Locked Moved Web Development
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    James Simpson
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups