[jdev] s2s and xep-198 session resumption

Peter Saint-Andre stpeter at stpeter.im
Mon Oct 13 20:38:59 CDT 2008


Justin Karneges wrote:
> 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.

I like that idea. :)

Peter

-- 
Peter Saint-Andre
https://stpeter.im/





More information about the JDev mailing list