On Thu Dec 11 07:33:27 2008, Yann Leboulanger wrote:
> Adi wrote:
> > How often should a client send xmpp presence to a server?  I  
> assume most
> > XMPP servers usually have a timeout for client idle and the  
> presence
> > should be sent at a value that is less than this timeout to be  
> optimal.
> > But if you are talking to some third party xmpp server, you  
> wouldnt know
> > their client idle timeout setting, so how do we optimize sending
> > presence? -
> 
> There is XMPP Ping for this: XEP-0199
> 
> We send such a ping after 55sec of inactivity and wait for the  
> answer
> for 20 seconds before assuming we are disconnected

(Which tends to break my connection when I'm on the mobile, but I  
found out how to turn it off).

We (Isode) send whitespace after a minute of "dead air" (both  
directions), a XEP-0199 ping if the client has been silent for 5  
minutes, and that in turn has a 2 minute timeout. (Hence we actually  
send two pings before we disconnect - arguably a bug, but not one I'm  
motivated to do anything about).

In trunk, we also send an immediate ping with a 10 second timeout to  
the "old" session in a conflict pair - ie, if a new session wishes to  
use the same resource, we ping the old one to see if it's still  
responding before deciding what to do.

Dave.
-- 
Dave Cridland - mailto:[EMAIL PROTECTED] - xmpp:[EMAIL PROTECTED]
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade
_______________________________________________
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [EMAIL PROTECTED]
_______________________________________________

Reply via email to