[ejabberd] server doesnt tell about disconnected user

Mickaël Rémond mickael.remond at process-one.net
Thu Dec 14 21:18:17 MSK 2006


Le 13 déc. 06 à 16:29, Farooq Ahmed a écrit :

> hmm,
> cant this be solved by sending a <recipient-unavailable/> message  
> with error
> type "wait"
> rfc3920 (XMPP core) gives the provision for some error messages.  
> cant they
> be used?
> In case of loss of network connectivity, sending data on the  
> network would
> result in error?

Not if the TCP socket has not been closed. Data are written in the  
TCP buffer. Once the keepalive timeout trigger the fact that the  
connection is really gone, then you can now that it has been closed.  
But there is now way to get the data that you have written in the TCP  
buffer back to ejabberd (with a standard TCP/IP protocol  
implementation ;)

You have to work at the application level to add reliability and the  
standard are being worked on currently.

Mickaël Rémond

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jabber.ru/pipermail/ejabberd/attachments/20061214/810aec31/attachment.htm

More information about the ejabberd mailing list