2011/7/21 Ming Ji (mingj) <[email protected]>: >> 2) If either party sends any data, including whitespace, the timer >> MUST be restarted. >> >> 3) Typically, I'd expect a client to negotiate a high keepalive, and >> then issue the whitespace itself, in order to control transmission >> timing. (A mobile client will want to send all its keepalive traffic >> at once). >> >> 4) Servers SHOULD use XEP-0199 or XEP-0198 to actively solicit >> traffic from silent clients, and SHOULD only terminate the connection >> of unresponsive clients, rather then merely silent ones. >> > > This is just another solution and more efficient than xmpp ping. Also, I > think client and server would use the same method.
As I said in Council - I think using whitespace as the keepalive is fine (and that's what the network does already) but in the case that the server is about to disconnect the client due to silence, it should perform a ping first and only disconnect if it doesn't receive a reply - 199 will always work, or 198 if that's been negotiated. I believe this agrees with what Dave says. /K
