On 11.06.19 16:25, Dave Cridland wrote: > I think the optimal ping, from the server's perspective, radically > changes depending on whether there are outstanding messages, and whether > there's an outstanding XEP-0198 ack. > > From a client's perspective it's really dependent on whether the user is > active, and if not, whether there is a push notification scheme in play. > > For the server, I think the ideal algorithm is roughly: > > a) If the server spoke last, and there is no XEP-0198 in play, then use > a XEP-0199 ping after N (where N is in the order of 30 seconds). A > successful ping means the client has now spoken last, of course. > b) If the server spoke last and there is XEP-0198 in play, then request > an acknowledgement after M (where M is anything from 0 to about 5 > seconds) after sending a stanza. > c) If the client spoke last, send a ping (XEP-0199 or XEP-0198 <r/>) > after P seconds (where P is in the order of 300). This is purely to > clean up old sessions. > > For the client: > > a) If the user is active, ping every 2 minutes (perhaps). > b) Otherwise, if there is no push, ping every 5 minutes. > c) Otherwise, don't ping at all.
Interesting approach. I would love to learn about the anticipated advantages of this scheme and how they are accomplished. - Florian
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Standards mailing list Info: https://mail.jabber.org/mailman/listinfo/standards Unsubscribe: standards-unsubscr...@xmpp.org _______________________________________________