<div dir="ltr">Hi<br><br>I understand that xmpp federation is similar to mail servers.<br>There is some kind of verification and stanzas are sent in a fire and forget way.<br>A server doesn't need to keep track of the presence of users from other servers <br>
or other kind of distributed state except for the actual connection.<br><br>I couldn't find info about how to handle failures.<br>Let's say <a href="http://host1.com">host1.com</a> on server1 has <a href="mailto:user1@host1.com">user1@host1.com</a> and <a href="http://host2.com">host2.com</a> on server2 has <a href="mailto:user2@host2.com">user2@host2.com</a> <br>
user1 and user2 has each other on their rosters.<br>user1 is already logged in and now user2 is logging in and sending a presence stanza.<br>host2 pass the presence stanza to host1 with the to attribute and a presence probe.<br>
host1 pass the presence to user1 and respond with user1's presence.<br>host1 doesn't remember that user2 is online and the opposite.<br><br>1.server2 has a power failure and it is back up in few minutes.<br>Does host2 need to send offline presence for all its users to hsot1?<br>
<br>2. server2 is running but the connection to server1 is lost for few minutes.<br>When the connection is back, the online users are not in sync.<br>How do I handle this situation?<br><br>3. When host1 sends a stanza to a user on host2 that is offline,<br>
does host2 respond with an error?<br><br>Is there a doc explaining s2s implementation?<br><br>Thanks<br><br><br><br><br><br><br></div>