[jdev] s2s implementation

pablo platt pablo.platt at gmail.com
Sat Oct 30 07:00:33 CST 2010


Hi

I understand that xmpp federation is similar to mail servers.
There is some kind of verification and stanzas are sent in a fire and forget
way.
A server doesn't need to keep track of the presence of users from other
servers
or other kind of distributed state except for the actual connection.

I couldn't find info about how to handle failures.
Let's say host1.com on server1 has user1 at host1.com and host2.com on server2
has user2 at host2.com
user1 and user2 has each other on their rosters.
user1 is already logged in and now user2 is logging in and sending a
presence stanza.
host2 pass the presence stanza to host1 with the to attribute and a presence
probe.
host1 pass the presence to user1 and respond with user1's presence.
host1 doesn't remember that user2 is online and the opposite.

1.server2 has a power failure and it is back up in few minutes.
Does host2 need to send offline presence for all its users to hsot1?

2. server2 is running but the connection to server1 is lost for few minutes.
When the connection is back, the online users are not in sync.
How do I handle this situation?

3. When host1 sends a stanza to a user on host2 that is offline,
does host2 respond with an error?

Is there a doc explaining s2s implementation?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20101030/2f6b0772/attachment.htm>


More information about the JDev mailing list