Closed Thread
Results 1 to 2 of 2

Thread: problems with comet connection

  1. #1
    t3tris is offline Newbie
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    problems with comet connection

    I'm trying to get a real time chat going with a comet connection. I've done this successfully with the "long polling" technique. The problem that I'm running into here is that post requests to the server greatly decrease in speed if there is a long interval in between data sent via posts. Having a one and one half second delay after every send isn't exactly what I'm after. I solved this problem by sending an empty XHR post request about once every five seconds, and the script works fine, and in real time. This seems like a waste of resources though, and for the sake of knowledge I would like to know why this is necessary. I believe it has something to do with the keep alive time on the server? I don't want to change this timeout setting for all requests though, as it would be a waste of server resources. I'm essentially wondering if there is a way to keep this connection fluid, without wasting a lot of resources. The server listen loop is in php.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    joyo is offline Newbie
    Join Date
    Feb 2010
    Posts
    17
    Rep Power
    0

    Re: problems with comet connection

    In my idea, I think it is hard to solve you problem by IE browser which is used to visit your server program.

    because there are a lot of limit and standard in web server or IE browser.
    If you want to solve it , you'd better to develop an application by c programming or other language instead of php.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 02-10-2011, 02:09 AM
  2. Replies: 0
    Last Post: 08-21-2010, 01:59 AM
  3. please help in the connection of vb to MS access
    By hyourinmaru11 in forum Visual Basic Programming
    Replies: 1
    Last Post: 08-04-2010, 01:56 AM
  4. I have got a new connection
    By Jaan in forum The Lounge
    Replies: 2
    Last Post: 07-09-2010, 07:44 AM
  5. Dsn Connection Vb 6.0
    By nishbur in forum Visual Basic Programming
    Replies: 3
    Last Post: 03-29-2008, 12:58 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts