How do I know when a MUC server restarts?

Stephen Paul Weber <[email protected]> Thu, 3 Mar 2016 08:19:56 -0500
Newsgroups gmane.network.jabber.devel
Message-ID <20160303131956.GA2740@singpolyma-liberty>
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

_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJW2Dn8AAoJENEcKRHOUZzey9UP/RJpt/Z/Z3dU1JGpv6DEFStA
lzCOcbLU/T6EFs0PXQlN82jsv5dcaEkgp5rfgup60pJoPHpqTcJVB1ftXop/mtD2
IE2J45RdP502rWwtTEMuxnbqq+Ehdff2wx0ftAPUJg/Pht3OsuAUQ73RgnKPqwft
w363ORpjvkXXBwpK+7iCbqzLr2TD/bw9b+EdZXhCOIUnODQ7k3Ac4qCLXhnrebdg
LgwcAzGBdLma3wZe7Yjksi+th95QKBEV9WaZlKmtSqk9tImPCWw2ZZVKW7hjYZdY
lpWV6s1q05fzo5QwSA7M/rOFyByXqZNcdkBogDNawBGIWt26seYFqq6p+2f6wfMH
8oGvwd2bStbvi436n2OO74pTL3PL2JlzptKLamQqXUj/qoPMjhQl9UdyZEaeTM2h
sInCdlST3Y+9hJnJ/jRptOnroCYHw0Q74478k5eYwXBlvN2hnbo01x5Qg27S8fnF
5K35BPtbYCQahYqiaw/4wml8gvQH5yIg3+gDMHlb9oUYiD8St+LekRmOpkI/+BiR
SIxsFdZQiuiC3YB5ADlpxMC8cBAzzBtwFJmU4WsXkU+kT7N5Tgl8y24e3nk5q6nT
5CKgxIA03OzGvDoqj1FG5RxgfS697kMiUqSED05Zz8S7ZiDnSQDL250+JywEy/a8
0NsIKqZIVkz/zi6a8+Jg
=RevA
-----END PGP SIGNATURE-----