Diff

mod_smacks/mod_smacks.lua @ 642:842a8a3b0d81

mod_smacks: Make smacks_max_unacked_stanzas configurable
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Apr 2012 18:21:29 +0100
parent 641:06a78cba6499
child 754:713c6791fbcc
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Sat Apr 28 18:20:18 2012 +0100
+++ b/mod_smacks/mod_smacks.lua	Sat Apr 28 18:21:29 2012 +0100
@@ -17,7 +17,7 @@
 
 local resume_timeout = module:get_option_number("smacks_hibernation_time", 300);
 local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false);
-local max_unacked_stanzas = 0;
+local max_unacked_stanzas = module:get_option_number("smacks_max_unacked_stanzas", 0);
 
 local c2s_sessions = module:shared("/*/c2s/sessions");
 local session_registry = {};