diff options
author | Holger Weiß <holger@zedat.fu-berlin.de> | 2022-10-18 16:08:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 16:08:16 +0200 |
commit | 13d4787ea9f2ecfc2f8b1be4b8d7559f6099b0e3 (patch) | |
tree | abc8f7778608a8957828306f58fc02e6c92fe003 | |
parent | fix table creation on a running cluster (#3913) (diff) |
Bump default 's2s_timeout' value (#3653)
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.
Co-authored-by: Paweł Chmielowski <pawel@process-one.net>
-rw-r--r-- | src/ejabberd_options.erl | 2 | ||||
-rw-r--r-- | src/ejabberd_options_doc.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_options.erl b/src/ejabberd_options.erl index bbf21853..49fc6612 100644 --- a/src/ejabberd_options.erl +++ b/src/ejabberd_options.erl @@ -644,7 +644,7 @@ options() -> {s2s_protocol_options, undefined}, {s2s_queue_type, 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_use_starttls, false}, {s2s_zlib, false}, diff --git a/src/ejabberd_options_doc.erl b/src/ejabberd_options_doc.erl index 5cc0cc72..16771596 100644 --- a/src/ejabberd_options_doc.erl +++ b/src/ejabberd_options_doc.erl @@ -1172,7 +1172,7 @@ doc() -> #{value => "timeout()", desc => ?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, #{value => "true | false | optional | required", desc => |