Software /
code /
prosody
Changeset
12046:372ec5cd0f51
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 06 Dec 2021 11:49:22 +0100 |
parents | 12045:a6c821720cb6 |
children | 12047:81858fd6f198 |
files | plugins/mod_smacks.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);