Software /
code /
prosody-modules
Comparison
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 |
comparison
equal
deleted
inserted
replaced
641:06a78cba6499 | 642:842a8a3b0d81 |
---|---|
15 | 15 |
16 local sm_attr = { xmlns = xmlns_sm }; | 16 local sm_attr = { xmlns = xmlns_sm }; |
17 | 17 |
18 local resume_timeout = module:get_option_number("smacks_hibernation_time", 300); | 18 local resume_timeout = module:get_option_number("smacks_hibernation_time", 300); |
19 local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false); | 19 local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false); |
20 local max_unacked_stanzas = 0; | 20 local max_unacked_stanzas = module:get_option_number("smacks_max_unacked_stanzas", 0); |
21 | 21 |
22 local c2s_sessions = module:shared("/*/c2s/sessions"); | 22 local c2s_sessions = module:shared("/*/c2s/sessions"); |
23 local session_registry = {}; | 23 local session_registry = {}; |
24 | 24 |
25 local function can_do_smacks(session, advertise_only) | 25 local function can_do_smacks(session, advertise_only) |