Software /
code /
prosody
Comparison
plugins/mod_smacks.lua @ 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 |
parent | 12045:a6c821720cb6 |
child | 12047:81858fd6f198 |
comparison
equal
deleted
inserted
replaced
12045:a6c821720cb6 | 12046:372ec5cd0f51 |
---|---|
582 original_session.filters = session.filters; | 582 original_session.filters = session.filters; |
583 original_session.send.filter = original_session.filter; | 583 original_session.send.filter = original_session.filter; |
584 original_session.stream = session.stream; | 584 original_session.stream = session.stream; |
585 original_session.secure = session.secure; | 585 original_session.secure = session.secure; |
586 original_session.hibernating = nil; | 586 original_session.hibernating = nil; |
587 original_session.resumption_counter = (original_session.resumption_counter or 0) + 1; | |
587 session.log = original_session.log; | 588 session.log = original_session.log; |
588 session.type = original_session.type; | 589 session.type = original_session.type; |
589 wrap_session(original_session, true); | 590 wrap_session(original_session, true); |
590 -- Inform xmppstream of the new session (passed to its callbacks) | 591 -- Inform xmppstream of the new session (passed to its callbacks) |
591 original_session.stream:set_session(original_session); | 592 original_session.stream:set_session(original_session); |