# HG changeset patch # User Kim Alvefur # Date 1402984912 -7200 # Node ID feca77ad88ac67f11eb5ef0f726dae1a5f9f1113 # Parent 161bbe0b9dd3004cceb518d035c2ebaefd173697 mod_smacks: Backout ed2a9c00b5c4, need a better solution diff -r 161bbe0b9dd3 -r feca77ad88ac mod_smacks/mod_smacks.lua --- a/mod_smacks/mod_smacks.lua Sun Jun 15 02:40:18 2014 +0200 +++ b/mod_smacks/mod_smacks.lua Tue Jun 17 08:01:52 2014 +0200 @@ -19,7 +19,6 @@ local resume_timeout = module:get_option_number("smacks_hibernation_time", 300); local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false); -local max_queue_size = module:get_option_number("smacks_max_queue_size", 500); local max_unacked_stanzas = module:get_option_number("smacks_max_unacked_stanzas", 0); local core_process_stanza = prosody.core_process_stanza; local sessionmanager = require"core.sessionmanager"; @@ -91,10 +90,6 @@ cached_stanza = cached_stanza:tag("delay", { xmlns = xmlns_delay, from = session.host, stamp = datetime.datetime()}); end - if max_queue_size > 0 and #queue > max_queue_size then - session.log("warn", "Too many unacked stanzas"); - session:close{ condition = "policy-violation"; text = "Too many unacked stanzas"; }; - end queue[#queue+1] = cached_stanza; session.log("debug", "#queue = %d", #queue); end