Software /
code /
prosody-modules
Comparison
mod_s2s_keepalive/README.markdown @ 3768:bfc4d495bf2c
mod_s2s_keepalive: Update README to document timeout behavior
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 Dec 2019 18:50:36 +0100 |
parent | 3767:7fe10086e124 |
comparison
equal
deleted
inserted
replaced
3767:7fe10086e124 | 3768:bfc4d495bf2c |
---|---|
15 module. By default, all current s2s connections will be pinged | 15 module. By default, all current s2s connections will be pinged |
16 periodically. To ping only a subset of servers, list these in | 16 periodically. To ping only a subset of servers, list these in |
17 `keepalive_servers`. The ping interval can be set using | 17 `keepalive_servers`. The ping interval can be set using |
18 `keepalive_interval`. | 18 `keepalive_interval`. |
19 | 19 |
20 If no response to the ping has been received in about 10 minutes (or | |
21 `keepalive_timeout` seconds) the s2s connections are closed. | |
22 | |
20 ``` lua | 23 ``` lua |
21 modules_enabled = { | 24 modules_enabled = { |
22 ... | 25 ... |
23 "s2s_keepalive" | 26 "s2s_keepalive" |
24 } | 27 } |
25 | 28 |
26 keepalive_servers = { "conference.prosody.im"; "rooms.swift.im" } | 29 keepalive_servers = { "conference.prosody.im"; "rooms.swift.im" } |
27 keepalive_interval = 90 -- (in seconds, default is 60 ) | 30 keepalive_interval = 90 -- (in seconds, default is 60 ) |
31 keepalive_timeout = 300 -- (in seconds, default is 593 ) | |
28 ``` | 32 ``` |
29 | 33 |
30 Compatibility | 34 Compatibility |
31 ============= | 35 ============= |
32 | 36 |