Bump default 's2s_timeout' value
Wait for an hour before closing an idle s2s connection. It's not uncommon for a connection to be idle for longer than ten minutes but less than an hour. For example, XEP-0410 suggests a ping interval of fifteen minutes. A longer idle timeout avoids the latency and log entries associated with constantly re-establishing such connections.
This commit is contained in:
parent
2050cdffb4
commit
43fb90e9d6
|
@ -638,7 +638,7 @@ options() ->
|
||||||
{s2s_protocol_options, undefined},
|
{s2s_protocol_options, undefined},
|
||||||
{s2s_queue_type,
|
{s2s_queue_type,
|
||||||
fun(Host) -> ejabberd_config:get_option({queue_type, Host}) end},
|
fun(Host) -> ejabberd_config:get_option({queue_type, Host}) end},
|
||||||
{s2s_timeout, timer:minutes(10)},
|
{s2s_timeout, timer:hours(1)},
|
||||||
{s2s_tls_compression, undefined},
|
{s2s_tls_compression, undefined},
|
||||||
{s2s_use_starttls, false},
|
{s2s_use_starttls, false},
|
||||||
{s2s_zlib, false},
|
{s2s_zlib, false},
|
||||||
|
|
|
@ -1149,7 +1149,7 @@ doc() ->
|
||||||
#{value => "timeout()",
|
#{value => "timeout()",
|
||||||
desc =>
|
desc =>
|
||||||
?T("A time to wait before closing an idle s2s connection. "
|
?T("A time to wait before closing an idle s2s connection. "
|
||||||
"The default value is '10' minutes.")}},
|
"The default value is '1' hour.")}},
|
||||||
{s2s_use_starttls,
|
{s2s_use_starttls,
|
||||||
#{value => "true | false | optional | required",
|
#{value => "true | false | optional | required",
|
||||||
desc =>
|
desc =>
|
||||||
|
|
Loading…
Reference in New Issue