On 11.06.19 14:41, Philipp Hörist wrote: > Hi, > > So what is the best practice as a desktop client? As i also currently > review the whitespace sending code. > > Is every 10 seconds too much?
I won't get much into the discussion about the interval, but you should at least not unconditionally send pings periodically, but instead take the connection-idle period into account. That is, don't send a ping if you have just received data from the socket a second ago. For example, on Android I wind up an alarm every 15(/30) minutes, which checks the timestamp when the last stream element was received (or send), and if if the connection has been idle for more then 15(/30) minutes, I request a ping. Works pretty well for me. - Florian
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Standards mailing list Info: https://mail.jabber.org/mailman/listinfo/standards Unsubscribe: [email protected] _______________________________________________
