42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.59k stars 614 forks source link

Bridge to XMPP MUC not functioning after XMPP server restart #1552

Open appletalk opened 3 years ago

appletalk commented 3 years ago

Describe the bug If the connected XMPP server is restarted, Matterbridge loses its connection to the MUC and no messages are sent/received across the bridge until Matterbridge is restarted.

To Reproduce Configure Matterbridge with an endpoint being an XMPP MUC Restart the XMPP server that Matterbridge is connected to No messages are sent/received from the MUC until Matterbridge is restarted

Expected behavior Matterbridge should detect that it's connection/presence in the MUC has been lost and re-establish it so messages are bridged correctly

Environment (please complete the following information):

This might help, it describes the situation going on here. https://xmpp.org/extensions/xep-0410.html

southerntofu commented 3 years ago

I can confirm this bug on my side. I suspected this for a while after seeing matterbridge lose connection to MUC over time.

EDIT: So i tried to restart the MUC server my matterbridge instance is connected to, and it didn't start failing. So i'm not entirely sure if it's because the connection had no time to timeout, or if the problem is elsewhere. Maybe the problem occurs when the homeserver fails, not the MUC server (since the matterbridge client has no direct connection to the MUC server it's plausible)? It would be nice if someone could find how to reproduce this bug!

Neustradamus commented 5 months ago

Any news about this ticket?