[jdev] XMPP Ping method?

Bruce Campbell list-jdev at vicious.dropbear.id.au
Thu Nov 2 04:27:56 CST 2006

>> On Wed, Nov 01, 2006 at 06:07:39PM +0100, Tobias Markmann wrote:
>> > Isn't that a TCP problem since that can happen to any protocol which is
>> > based to TCP?

You should diffentiate between interactive and bulk protocols that use 
TCP.  The latter tend towards getting as much data in the shortest amount 
of time (eg HTTP and FTP request -> response setup), whilst the former 
(telnet/ssh, xmpp etc) tend to small amounts of data being sent at 
arbitary intervals.

On Wed, 1 Nov 2006, Dave Cridland wrote:

> Hop-by-hop tests are quite easy, too, but there's a gotcha - when they fail, 
> you want to know which stanzas you need to resend. And XMPP does not provide 
> any mechanism for that, and nor do pings.

If you can be assured of whitespace pings between the client and the 
server, the server can simply queue up all stanzas as received and 
forwarded, and delete from the queue any stanzas sent between successful 
receipt of whitespace pings.  Without protocol changes, the odd duplicated 
stanza is probably the best of a known evil.

   Bruce Campbell.

More information about the JDev mailing list