[jdev] How do I know when a MUC server restarts?
Stephen Paul Weber
singpolyma at singpolyma.net
Thu Mar 3 13:19:56 UTC 2016
I am writing a external component (using it with Prosody right now) that
allows users to join MUCs on other servers. When a remote server restarts,
I see this is my prosody log:
info outgoing s2s stream singpolyma.net->chat.yax.im closed: system-shutdown (Received SIGTERM)
Now, my component is not running on singpolyma.net (that is a different
domain on the same Prosody instance), but either maybe all s2s were incoming
at the time since no one had said anything recently?
Anyway, looking at the logs on my component, I don't see any stanza
indicating anything about this. I mean, I guess that makes sense. Server
restarts don't generate stanzas.
The problem is that when they restart the server, it comes back up with all
MUCs empty and I need to get everyone on my component to re-join. But as it
the component actually thinks they are still in the MUC!
Other XMPP clients I use seem to (sometimes after awhile) detect this
situation somehow and tell me I'm no longer in the room (or try to re-join).
How are they doing this? Is this some quirk of the external component
protocol where normally Prosody would generate this kind of stanza to
a client? Or what else could I be missing? I really need to solve this
issue...
Many thanks for any help!
--
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://www.jabber.org/jdev/attachments/20160303/d8d180b2/attachment.sig>
More information about the JDev
mailing list