Mercurial > prosody-modules
comparison mod_smacks/mod_smacks.lua @ 4536:8bdb9805bb73
mod_smacks: Enable on s2s by default to see what breaks
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 31 Mar 2021 22:06:23 +0200 |
parents | 8b8246031a5e |
children | 53ee391ca689 |
comparison
equal
deleted
inserted
replaced
4535:dc35d2932d3e | 4536:8bdb9805bb73 |
---|---|
34 | 34 |
35 local sm2_attr = { xmlns = xmlns_sm2 }; | 35 local sm2_attr = { xmlns = xmlns_sm2 }; |
36 local sm3_attr = { xmlns = xmlns_sm3 }; | 36 local sm3_attr = { xmlns = xmlns_sm3 }; |
37 | 37 |
38 local resume_timeout = module:get_option_number("smacks_hibernation_time", 600); | 38 local resume_timeout = module:get_option_number("smacks_hibernation_time", 600); |
39 local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false); | 39 local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", true); |
40 local s2s_resend = module:get_option_boolean("smacks_s2s_resend", false); | 40 local s2s_resend = module:get_option_boolean("smacks_s2s_resend", false); |
41 local max_unacked_stanzas = module:get_option_number("smacks_max_unacked_stanzas", 0); | 41 local max_unacked_stanzas = module:get_option_number("smacks_max_unacked_stanzas", 0); |
42 local max_inactive_unacked_stanzas = module:get_option_number("smacks_max_inactive_unacked_stanzas", 256); | 42 local max_inactive_unacked_stanzas = module:get_option_number("smacks_max_inactive_unacked_stanzas", 256); |
43 local delayed_ack_timeout = module:get_option_number("smacks_max_ack_delay", 30); | 43 local delayed_ack_timeout = module:get_option_number("smacks_max_ack_delay", 30); |
44 local max_hibernated_sessions = module:get_option_number("smacks_max_hibernated_sessions", 10); | 44 local max_hibernated_sessions = module:get_option_number("smacks_max_hibernated_sessions", 10); |