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 | 74d66c5aef7a842ddc13a87745c86b8250173655 (patch) | |
tree | 27466c317d33fea1ac5349712eb49fa8ed583696 /plugins/mod_s2s | |
parent | 4d4d9b30933ebc9b8b12a455f171acf5714d5b2c (diff) | |
download | prosody-74d66c5aef7a842ddc13a87745c86b8250173655.tar.gz prosody-74d66c5aef7a842ddc13a87745c86b8250173655.zip |
mod_s2s: Add missing global hook for read-timeout
Diffstat (limited to 'plugins/mod_s2s')
-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"); |