comparison mod_smacks/mod_smacks.lua @ 3967:0957ba6aeb99

mod_smacks: Update documentation and slightly adjust default values
author tmolitor <thilo@eightysoft.de>
date Sun, 05 Apr 2020 23:37:17 +0200
parents e93e58b33bf6
children bf5d91769f99
comparison
equal deleted inserted replaced
3966:a411a8e028ed 3967:0957ba6aeb99
32 local xmlns_delay = "urn:xmpp:delay"; 32 local xmlns_delay = "urn:xmpp:delay";
33 33
34 local sm2_attr = { xmlns = xmlns_sm2 }; 34 local sm2_attr = { xmlns = xmlns_sm2 };
35 local sm3_attr = { xmlns = xmlns_sm3 }; 35 local sm3_attr = { xmlns = xmlns_sm3 };
36 36
37 local resume_timeout = module:get_option_number("smacks_hibernation_time", 300); 37 local resume_timeout = module:get_option_number("smacks_hibernation_time", 600);
38 local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false); 38 local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false);
39 local s2s_resend = module:get_option_boolean("smacks_s2s_resend", false); 39 local s2s_resend = module:get_option_boolean("smacks_s2s_resend", false);
40 local max_unacked_stanzas = module:get_option_number("smacks_max_unacked_stanzas", 0); 40 local max_unacked_stanzas = module:get_option_number("smacks_max_unacked_stanzas", 0);
41 local delayed_ack_timeout = module:get_option_number("smacks_max_ack_delay", 60); 41 local delayed_ack_timeout = module:get_option_number("smacks_max_ack_delay", 30);
42 local max_hibernated_sessions = module:get_option_number("smacks_max_hibernated_sessions", 10); 42 local max_hibernated_sessions = module:get_option_number("smacks_max_hibernated_sessions", 10);
43 local max_old_sessions = module:get_option_number("smacks_max_old_sessions", 10); 43 local max_old_sessions = module:get_option_number("smacks_max_old_sessions", 10);
44 local core_process_stanza = prosody.core_process_stanza; 44 local core_process_stanza = prosody.core_process_stanza;
45 local sessionmanager = require"core.sessionmanager"; 45 local sessionmanager = require"core.sessionmanager";
46 46