On 07/11/2013 10:43 PM, Ben Langfeld wrote:
> One of us has really misunderstood XMPP components, but it is my
> understanding that S2S streams are still the responsibility of the
> server, eg ejabberd, and as such if you are having problems getting
> stanzas to remote domains but not your home domain (ejabberd instance)
> then there is nothing Blather can do about the situation and you need to
> take it up with your XMPP server.
Yes, managing s2s connections is the responsibility of the XMPP server.
There is, for example, a plugin for Prosody that sends XMPP pings every
60 seconds on all open s2s connections to keep them alive.
I just hoped for a *portable* solution to this problem that I could ship
with my code. If Blather doesn't keep track of remote connections
(which it certainly doesn't have to when used as a component) there is
no nice way of doing this, short of manually recording every to and from
domain and pinging them once in a while...
So I'll just make sure to mention this potential pitfall in my
documentation, recommending server plugins for keepalive if the user is
unable to adjust the TCP timeout directly.
Thanks for the confirmation.