aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-06-26 13:35:38 +0200
committerKim Alvefur <zash@zash.se>2013-06-26 13:35:38 +0200
commitb091e0eef151b2ad76d3efa0d3f791e07879d623 (patch)
tree27466c317d33fea1ac5349712eb49fa8ed583696
parentceb0343e1ba7647ae4feb5048613a76edb0057ca (diff)
downloadprosody-b091e0eef151b2ad76d3efa0d3f791e07879d623.tar.gz
prosody-b091e0eef151b2ad76d3efa0d3f791e07879d623.zip
mod_s2s: Add missing global hook for read-timeout
-rw-r--r--plugins/mod_s2s/mod_s2s.lua2
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");