<div dir="ltr"><br><br><div class="gmail_quote">On Sat, Oct 30, 2010 at 3:22 PM, Sergey Dobrov <span dir="ltr"><<a href="mailto:binary@jrudevels.org">binary@jrudevels.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 10/30/2010 08:00 PM, pablo platt wrote:<br>
> 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<br>
> forget way.<br>
> A server doesn't need to keep track of the presence of users from other<br>
> 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>
</div>> Let's say <a href="http://host1.com" target="_blank">host1.com</a> <<a href="http://host1.com" target="_blank">http://host1.com</a>> on server1 has <a href="mailto:user1@host1.com">user1@host1.com</a><br>
> <mailto:<a href="mailto:user1@host1.com">user1@host1.com</a>> and <a href="http://host2.com" target="_blank">host2.com</a> <<a href="http://host2.com" target="_blank">http://host2.com</a>> on server2 has<br>
> <a href="mailto:user2@host2.com">user2@host2.com</a> <mailto:<a href="mailto:user2@host2.com">user2@host2.com</a>><br>
<div class="im">> user1 and user2 has each other on their rosters.<br>
> user1 is already logged in and now user2 is logging in and sending a<br>
> presence stanza.<br>
> host2 pass the presence stanza to host1 with the to attribute and a<br>
> 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>
</div>No, If user is offline too long, user will see remote-server-timeout<br>
error if it sent any stanza to him.<br>
<div class="im"><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>
</div>TCP gives you a guarantee that data will be delivered to a recipient.<br>
This problem is occured only if connection was down too long. And the<br>
answer is the same such 1.<br></blockquote><div><br><br>What about users that logged in when server2 was down?<br>What if server1 is restarted, it won't know about online users in server2.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
> 3. When host1 sends a stanza to a user on host2 that is offline,<br>
> does host2 respond with an error?<br>
><br>
</div>It's related on stanza kind and server's settings. If you send a message<br>
you will store it in the offline storage for example. But if you send iq<br>
stanza to a full jid server will return service-unavailable error.<br>
<div class="im"><br>
> Is there a doc explaining s2s implementation?<br>
<br>
</div>RFC 3920<br></blockquote><div><br>RFC 3920 is too general<br>I think that a section dedicated to all aspects of s2s will be very helpful.<br><br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
><br>
> Thanks<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> JDev mailing list<br>
> Forum: <a href="http://www.jabberforum.org/forumdisplay.php?f=20" target="_blank">http://www.jabberforum.org/forumdisplay.php?f=20</a><br>
> Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
> Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a><br>
> _______________________________________________<br>
<br>
<br>
--<br>
With best regards,<br>
Sergey Dobrov,<br>
XMPP Developer and JRuDevels.org founder.<br>
<br>
_______________________________________________<br>
JDev mailing list<br>
Forum: <a href="http://www.jabberforum.org/forumdisplay.php?f=20" target="_blank">http://www.jabberforum.org/forumdisplay.php?f=20</a><br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
</blockquote></div><br></div>