mod_s2s: Add missing global hook for read-timeout
authorKim Alvefur <zash@zash.se>
Wed, 26 Jun 2013 11:35:38 +0000 (13:35 +0200)
committerKim Alvefur <zash@zash.se>
Wed, 26 Jun 2013 11:35:38 +0000 (13:35 +0200)
plugins/mod_s2s/mod_s2s.lua

index 5e50e88b6207ca3085067560430bdf4c1b071656..01fac4d2c93b03a6279be2b6ea26cd01624cf7fa 100644 (file)
@@ -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");