aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-06 11:49:22 +0100
committerKim Alvefur <zash@zash.se>2021-12-06 11:49:22 +0100
commitccd96b3fa31f82dfe1faf4dc7e24d7f921db7180 (patch)
tree4cf93ea335f7ea234fd704140d16f88721ec94bf /plugins
parent3129350d42d2e48fa1a8d31ad46437a837626989 (diff)
downloadprosody-ccd96b3fa31f82dfe1faf4dc7e24d7f921db7180.tar.gz
prosody-ccd96b3fa31f82dfe1faf4dc7e24d7f921db7180.zip
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_smacks.lua1
1 files changed, 1 insertions, 0 deletions
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);