<div dir="ltr">There is still an uncovered point<br>where both servers have online users and they connect.<br><br><br><div class="gmail_quote">On Sat, Oct 30, 2010 at 3:31 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:27 PM, pablo platt wrote:<br>
><br>
><br>
> On Sat, Oct 30, 2010 at 3:22 PM, Sergey Dobrov <<a href="mailto:binary@jrudevels.org">binary@jrudevels.org</a><br>
</div><div class="im">> <mailto:<a href="mailto:binary@jrudevels.org">binary@jrudevels.org</a>>> wrote:<br>
><br>
> 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<br>
> 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>> <<a href="http://host1.com" target="_blank">http://host1.com</a>> on<br>
<div class="im">> server1 has <a href="mailto:user1@host1.com">user1@host1.com</a> <mailto:<a href="mailto:user1@host1.com">user1@host1.com</a>><br>
</div>> > <mailto:<a href="mailto:user1@host1.com">user1@host1.com</a> <mailto:<a href="mailto:user1@host1.com">user1@host1.com</a>>> and <a href="http://host2.com" target="_blank">host2.com</a><br>
> <<a href="http://host2.com" target="_blank">http://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>> <mailto:<a href="mailto:user2@host2.com">user2@host2.com</a><br>
<div class="im">> <mailto:<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<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>
> No, If user is offline too long, user will see remote-server-timeout<br>
> error if it sent any stanza to him.<br>
><br>
> > 2. server2 is running but the connection to server1 is lost for<br>
> few minutes.<br>
> > When the connection is back, the online users are not in sync.<br>
> > How do I handle this situation?<br>
> ><br>
> 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>
><br>
><br>
><br>
> What about users that logged in when server2 was down?<br>
</div>remote-server-not-found or timeout error in presence if server will be<br>
down more than timeout value.<br>
<div class="im"><br>
> What if server1 is restarted, it won't know about online users in server2.<br>
</div>When users on server2 will log in they will send probes and users on<br>
server 1 will inform about them statuses.<br>
<div class="im"><br>
><br>
><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>
> 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>
><br>
> > Is there a doc explaining s2s implementation?<br>
><br>
> RFC 3920<br>
><br>
><br>
> RFC 3920 is too general<br>
> I think that a section dedicated to all aspects of s2s will be very helpful.<br>
><br>
</div>I think it's enough.<br>
<div class="im"><br>
><br>
><br>
> ><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>
</div>> <mailto:<a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a>><br>
<div class="im">> > _______________________________________________<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>
</div>> <mailto:<a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a>><br>
> _______________________________________________<br>
<div><div></div><div class="h5">><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>
</div></div></blockquote></div><br></div>