changeset 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 8e22b858628f
children ea1ecbc1d04d
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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