Changeset

5713:5cf6dedf36f4

mod_s2s: Add missing global hook for read-timeout
author Kim Alvefur <zash@zash.se>
date Wed, 26 Jun 2013 13:35:38 +0200
parents 5712:177fe6978ba8
children 5715:ce9818e48ebb
files plugins/mod_s2s/mod_s2s.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Mon Jun 24 18:29:04 2013 +0100
+++ b/plugins/mod_s2s/mod_s2s.lua	Wed Jun 26 13:35:38 2013 +0200
@@ -139,6 +139,8 @@
 	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");