# HG changeset patch # User Kim Alvefur # Date 1638787762 -3600 # Node ID 372ec5cd0f5198639fa1ef0e2b6b13c7c37d056b # Parent a6c821720cb60dad193a0af42a533c28ade25f24 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. diff -r a6c821720cb6 -r 372ec5cd0f51 plugins/mod_smacks.lua --- a/plugins/mod_smacks.lua Mon Dec 13 21:48:29 2021 +0100 +++ b/plugins/mod_smacks.lua Mon Dec 06 11:49:22 2021 +0100 @@ -584,6 +584,7 @@ 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);