[jdev] s2s and xep-198 session resumption

Justin Karneges justin-keyword-jabber.093179 at affinix.com
Thu Oct 2 23:37:12 CDT 2008


On Thursday 02 October 2008 21:09:37 Justin Karneges wrote:
> Periodically reacquainting yourself with remote servers is really the only
> solution.

(... to clearing away stale presence)

Suppose you want to check on interesting JIDs every 10 minutes.  Instead of 
connecting to a remote server in the usual way, and then presence probing 100 
JIDs, how about simply using XEP-198 session resumption?  Have the remote 
server set the session expiry to 15 minutes, and if you reconnect within 10 
minutes and the server still remembers that session token, then you would 
know the server hasn't died and you haven't lost any presence stanzas.  No 
actual presence probes needed.

-Justin



More information about the JDev mailing list