[Standards] Whitespace "ping"

Florian Schmaus flo at geekplace.eu
Tue Jun 11 15:21:58 UTC 2019


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: OpenPGP digital signature
URL: <http://mail.jabber.org/pipermail/standards/attachments/20190611/070197e7/attachment.sig>


More information about the Standards mailing list