On 06/03/2008 1:15 AM, JabberForum wrote: >>> If you want to tell when the client disconnects unexpectedly from > another >>client (e.g. if you have a contact that represents your server > availability or >>something) you could do something like: > > Is there someway to figure out what happens at the server when a client > crashes. Is any iq stanza sent to server (i doubt this would happen, > because the client has crashed) or would the xmpp server come to know > that by polling the status of the underlying tcp connection/socket?
If a client disconnects gracefully, it will send </stream:stream> and close the TCP connection. If a client disconnected ungracefully, it will send nothing, so the server will need to poll the TCP connection periodically (if the connection is idle); this is typically done using so-called "whitespace pings" as described here: http://www.xmpp.org/internet-drafts/draft-saintandre-rfc3920bis-05.html#streams-close-idle Peter -- Peter Saint-Andre https://stpeter.im/
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ JDev mailing list FAQ: http://www.jabber.org/discussion-lists/jdev-faq Forum: http://www.jabberforum.org/forumdisplay.php?f=20 Info: http://mail.jabber.org/mailman/listinfo/jdev Unsubscribe: [EMAIL PROTECTED] _______________________________________________
