diff options
author | Kim Alvefur <zash@zash.se> | 2013-06-26 13:35:38 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-06-26 13:35:38 +0200 |
commit | b091e0eef151b2ad76d3efa0d3f791e07879d623 (patch) | |
tree | 27466c317d33fea1ac5349712eb49fa8ed583696 /plugins | |
parent | ceb0343e1ba7647ae4feb5048613a76edb0057ca (diff) | |
download | prosody-b091e0eef151b2ad76d3efa0d3f791e07879d623.tar.gz prosody-b091e0eef151b2ad76d3efa0d3f791e07879d623.zip |
mod_s2s: Add missing global hook for read-timeout
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index 5e50e88b..01fac4d2 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -139,6 +139,8 @@ local function keepalive(event) return event.session.sends2s(' '); end +module:hook("s2s-read-timeout", keepalive, -1); + function module.add_host(module) if module:get_option_boolean("disallow_s2s", false) then module:log("warn", "The 'disallow_s2s' config option is deprecated, please see http://prosody.im/doc/s2s#disabling"); |