[EMAIL PROTECTED] wrote: > On Sat, Dec 29, 2007 at 01:28:25PM -0800, Tracy R Reed wrote: > > ..we just keep the connection open all the time. That's a kludge. It > > wastes a lot of bandwidth and requires the other end to keep file > > descriptors open. And are you implying that whitespace takes up less > > bandwidth than some other form of data? :) > > Yes but it is a very clever kludge that allows HTML/AJAX to do something it > wasn't designed for. > > You are making the wrong comparisons. Servers CANNOT send data to clients > unless the client initiates a request for data. A client keeping a SINGLE > connection open by sending a char every few seconds is MUCH less bandwidth > intensive then polling. > > Remember that polling requires setting up a connection and tearing it down > over and over. Certainly you agree sending one char is better than THAT?
How often is the polling? Tracy is talking about total resources, not just bandidth. You can keep in mind that bandwidth is cheap. If you have a busy website, and you have a file descriptor limit of, say 1024, that means you can have 1024 people pseudo-polling and no one else gets *ANYTHING*. Otherwise, you can have lots and lots (2000+) of clients polling every so often (once every second or two) and still stay within the 1024 file descriptor limit. Assuming, of course, that it takes a faction of a second to say ``no, go away.'' -john -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
