On Mon, Oct 26, 2009 at 12:50 PM, Andrew Rondeau
<a...@andrewrondeau.com> wrote:
Hi Mike,
I just read through the Comet Session Protocol spec. It seems like you've pretty much ironed out the different kinds of transport issues that can occur, and worked them into the protocol.
I do have some questions:
1: Is there an online forum that we can ask/answer questions so our conversation stays open?
2: It looks like an application's packets can be broken / merged, just like TCP sockets:
2a: Assuming my in-browser application sends two packets, "ABC" and "DEF", can the server application possibly get an "ABCDEF" packet?
Yes. Some tranports split packets up.
2b: Assuming my in-browser application sends one packet, "ABCDEF", can the server application possibly get two packets, "ABC" and "DEF"?
Yes, all transports attempt to merge packets where possible
3: What happens if a page opens multiple Comet Sessions at the same time?
This is acceptable, but you'll eat up your connection limits fast with older browsers, even using wildcard dns. In general, its best to multiplex on top of CSP -- this is what Orbited 0.8 does. It offers a higher level api called TCPSocket. Each time you instantiate a TCPSocket, it uses the existing CSP connection (if none exist, a new one is created.)
4: What happens if the user opens multiple tabs / windows, and each tab/window opens one Comet Sessions?
This is fine up until you hit the persistent connection limit in the browser. With wildcard dns enabled, this is 8 in IE6, (or maybe 6?) and much higher in all other browsers. This will probably not cause trouble until you have 32 tabs with a csp connection in all of them.
-Michael Carter
- Andy