From ccd96b3fa31f82dfe1faf4dc7e24d7f921db7180 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 6 Dec 2021 11:49:22 +0100 Subject: mod_smacks: Increment a counter for each resumption Encountered what looks like a bug where after *many* resumptions, part of the queue was not acked. --- plugins/mod_smacks.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 73a260da..3d95c4af 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -584,6 +584,7 @@ function handle_resume(session, stanza, xmlns_sm) original_session.stream = session.stream; original_session.secure = session.secure; original_session.hibernating = nil; + original_session.resumption_counter = (original_session.resumption_counter or 0) + 1; session.log = original_session.log; session.type = original_session.type; wrap_session(original_session, true); -- cgit v1.2.3