fix(visitors): Fixes s2s multiple connections.

We cannot use filters with s2s as not sending a stanza will result skipping existing connection and creating a new one.
This also clears some of the "No hosts[from_host] (please report)" errors, but there is still one (easy to repro is we disable the jicofo locking) on join we see a presence trying to be routed using the wrong from (virtual  tenant jid).
This commit is contained in:
damencho
2023-05-31 17:15:02 -05:00
committed by Дамян Минков
parent 0a84dbb302
commit 06e86a2f3e
4 changed files with 55 additions and 9 deletions

View File

@@ -129,7 +129,8 @@ local function stanza_handler(event)
return;
end
if stanza.attr.type == 'result' and sent_iq_cache:get(stanza.attr.id) then
-- we receive error from vnode for our disconnect message as the room was already destroyed (all visitors left)
if (stanza.attr.type == 'result' or stanza.attr.type == 'error') and sent_iq_cache:get(stanza.attr.id) then
sent_iq_cache:set(stanza.attr.id, nil);
return true;
end