[jdev] Presence - how often?
dave at cridland.net
Thu Dec 11 07:43:34 CST 2008
On Thu Dec 11 13:19:46 2008, Tomasz Sterna wrote:
> Dnia 2008-12-11, czw o godzinie 13:59 +0100, Jonathan Schleifer
> > So the the problem is the timeout in Gajim, and disabling it
> helps, as
> > Dave already said. But disabling it is not always the best
> > because then you also won't notice when the connection is really
> Whitespace keepalive sent every now and then detects dead connection
> pretty fine.
You're thinking the TCP retransmission timeout, and max retries as
well, which'll typically break the connection are around 10-30
minutes or so *if* there's data being sent - by sending whitespace
you simply force that condition. A completely silent connection has
no timeout at all, and this is by design - as long as IP addresses
don't change, you can completely lose the network without any damage.
In order to detect a downed connection properly, you need to use
either 198 or 199 pings.
Dave Cridland - mailto:dave at cridland.net - xmpp:dwd at dave.cridland.net
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade
More information about the JDev