On Tue, Dec 1, 2009 at 9:51 AM, Karthik Kailash <[email protected]
> wrote:

>  Hi,
>
>
>
> If [email protected] is in a MUC, and the XMPP server serving domain1.comgoes 
> down, does the MUC know to mark user1 as offline?  Also, if the server
> sends a departure presence on behalf of the user, but the message doesn’t
> reach the MUC, will the user be a zombie in the MUC forever?
>
>
>
> I read through the XEP and can’t find discussion of these cases.  Can
> someone shed light on how this is generally implemented or handled?
>

The XEP doesn't discuss these cases. There are two basic strategies for
detecting ghosts:

1. Ping the occupants every once in a while, and kick those who haven't been
heard from in a while

2. Listen for errors from occupants

The second is the one being used in most MUC components I'm familiar with.
On any presence or message broadcast, if an occupant responds with an error
(say a remove-server-not-found error), then they are kicked from the room.

A list of error conditions on which Prosody's mod_muc kicks occupants is
here:
http://hg.prosody.im/trunk/file/770a75623ed7/plugins/muc/muc.lib.lua#l50

--
Waqas Hussain

Reply via email to