On Oct 2, 2008, at 1:08 PM, Jonathan Schleifer wrote:

Am 02.10.2008 um 13:46 schrieb Pedro Melo:

I don't understand why a direct or mediated TCP connection is less reliable than a C2S + S2S * 2 + C2S set of connections. I think a direct connection is the most reliable of them all because I've got instant notification when something goes wrong: the connection gets dropped.

AFAIK, the Jingle Transports for direct conenctions are UDP. UDP is a stateless protocol, having no error correction or reliability at all. With TCP, we get noticed when a packet got lost. With UDP, we don't.

You are miss-informed. Please read the Jingle specs.


I deal with lost stanzas everyday due to S2S fluctuations, and those problems go away with direct connections. Even mediated connections look better.

The solution is to fix S2S, not to use direct connections. We need the S2S link anyway for presences etc…

"Fixing" S2S is orthogonal to the current discussion. Direct connections reduce the load on the server and if used judiciously and correctly are a much better solution.

There is no one-size-fits-all solution. In some scenarios IBB is acceptable, on other OOB is the proper way to do it. Jingle allows you to use the proper tool for the job.

I understand that you would like to have a reliable IBB, and thats ok, and probably worth the discussion. But don't do it by discarding direct connections. Its just not an option.

Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: [EMAIL PROTECTED]
Use XMPP!


Reply via email to