diff mod_smacks/mod_smacks.lua @ 4760:367a8020bd92

mod_smacks: Don't forgive client counting errors
author tmolitor <thilo@eightysoft.de>
date Sun, 07 Nov 2021 14:40:41 +0100
parents edbd84bbd8fb
children e227af629736
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Sun Nov 07 14:18:47 2021 +0100
+++ b/mod_smacks/mod_smacks.lua	Sun Nov 07 14:40:41 2021 +0100
@@ -387,6 +387,8 @@
 		for i=1,#queue do
 			origin.log("debug", "Q item %d: %s", i, tostring(queue[i]));
 		end
+        origin:close{ condition = "undefined-condition"; text = "Client acknowledged more stanzas than sent by server"; };
+        return;
 	end
 
 	for i=1,math_min(handled_stanza_count,#queue) do