[ejabberd] s2s over high latenency low bandwidth link

Badlop badlop at gmail.com
Sat Dec 3 17:49:24 MSK 2011

2011/12/3 Rick Blair <rickblair at mac.com>:
> I need to establish s2s connection between 2 ejabberd servers over a slow link.  Ping times in tens of seconds.  Is this possible?  I have s2s working well in all other cases, however between these servers I get connection and retry connection timeouts.  Is there a way to set the timeout values.

There isn't any option for that. But if you can recompile an erlang
source file, you can try changing those hardcoded timeouts (in
milliseconds) in ejabberd_s2s_out.erl :

-define(FSMTIMEOUT, 30000).
-define(TCP_SEND_TIMEOUT, 15000).


More information about the ejabberd mailing list