[jdev] s2s connections and presence
Michal vorner Vaner
michal.vaner at kdemail.net
Fri May 19 13:08:00 CDT 2006
On Fri, May 19, 2006 at 07:20:13PM +0200, Norman Rasmussen wrote:
> On 5/19/06, Wendell Turner <wendell at adsi-m4.com> wrote:
> >Question 1:
> >Is this how it is supposed to work? Is this behavior affected
> >by the queuetimeout or idletimeout in the s2s section of the
> >config file?
> This is how it works at the moment. (not sure how much it's by design
> choice, or how-it-happens to work)
>
> >Would other servers (jabberd2, ejabberd) behave differently
> >(i.e., remove the presence indication when s2s tcp connections
> >die)?
> I think they do, yes.
Well, I guess they can not. Dead connection does not mean the server is
dead and the user is not online. However, I think it could mark the
other contact offline when there is unsuccessful attempt to send a
stanza.
> >Even when romeo tries to send a chat msg, an error is evenutally
> >sent back to the client, yet still the presence doesn't change.
> unfortunately that's the way it is at the moment.
>
> >Question 2:
> >Both montague.com and capulet.com try to establish tcp
> >connections to each other, but are unsuccessful (Verona's
> >network is down). When Verona's networks come back up, what
> >mechanism in either server causes presence to 'reconnect'?
> there is none. (this is probably an implementation consideration,
> most implementations drop the packets, and give up)
What are they supposed to do? If it is message, they respond by service
unavailable, if iq, then the same. Presence is something that is
broadcasted and the client does not really want to know someone did not
get it.
If the other side just usually crashed/rebooted/whatever, it asks for
the presence once it becomes online itself by a probe.
> >If either romeo or juliet sets their status to offline, then
> >back to online, that triggers the servers to re-try the
> >connections, but will the servers do it by themselves?
> implementation specific, most don't at the moment.
>
> There's an assumption in the xmpp spec that all servers are 'well
> connected'.
>
> If a servers IP changes often (like eg: it's on a 24hr dhcp licence
> via adsl), then there are issues - depending on which servers, how dns
> is set up, etc.
>
> If links are 'dead' between servers, then the data just doesn't make
> it, and the server state hasn't changed.
>
--
One semi-random fortune:
Einstein argued that there must be simplified explanations of nature, because
God is not capricious or arbitrary. No such faith comforts the software
engineer.
-- Fred Brooks
Michal "vorner" Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20060519/03fc5bfb/attachment-0002.pgp>
More information about the JDev
mailing list