[jdev] How is a client crash communicated to the XMPP server?

Jonathan Dickinson jonathanD at k2.com
Tue Jun 3 07:38:22 CDT 2008


Unfortunately not all clients are 100% XMPP compliant. I am certain that most will give you a </stream:stream> at the end: so if a client disconnects without that they /should/ have quit unexpectedly.

Conversant XMPP Communicator:

</stream:stream>

Coccinella:

<presence type='unavailable'/>

</stream:stream>

As you can see Coccinella behaves as a client should, but both send the </stream:stream> so you should be able to tell with that.

So:

Client sends </stream:stream>
   o Disconnect client
   o Client disconnected normally
Client disconnects
   o Abandon client
   o Client disconnected unexpectedly

HTH

> -----Original Message-----
> From: jdev-bounces at jabber.org [mailto:jdev-bounces at jabber.org] On Behalf Of
> JabberForum
> Sent: 03 June 2008 09:16 AM
> To: jdev at jabber.org
> Subject: Re: [jdev] How is a client crash communicated to the XMPP server?
>
>
> >>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?
>
> thanks
> santhosh
>
>
> --
> santhosh.kulandaiyan
> ------------------------------------------------------------------------
> santhosh.kulandaiyan's Profile:
> http://www.jabberforum.org/member.php?userid=16912
> View this thread: http://www.jabberforum.org/showthread.php?t=200
>
> _______________________________________________
> 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: JDev-unsubscribe at jabber.org
> _______________________________________________



More information about the JDev mailing list