Kim Alvefur <zash@zash.se> [Thu, 02 Dec 2021 14:41:19 +0100] rev 12057
mod_smacks: Switch storage for tracking resumption tokens
All that was a complicated way to limit the number of resumable
sessions. Let's control resource usage some other way. This leaves the
essence of mapping resumption tokens to live sessions.
This keeps resumption state across reloads.
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 20:13:08 +0100] rev 12056
mod_smacks: Clear resumption token from persistent storage on resumption
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 16:41:10 +0100] rev 12055
mod_smacks: Persist old counter values to storage
This allows clients that try to resume a session after a server restart
to at least know which of their pending outgoing stanzas were received
and which need to be re-sent.
This removes the limit on how many of those counters are kept, which
should be fixed eventually.
Kim Alvefur <zash@zash.se> [Wed, 15 Dec 2021 12:09:30 +0100] rev 12054
mod_smacks: Remove now unused variable [luacheck]
Kim Alvefur <zash@zash.se> [Wed, 15 Dec 2021 12:06:58 +0100] rev 12053
mod_smacks: Remove unused event
Since nothing uses it. Some equivalent functionality may return in the
future.
Kim Alvefur <zash@zash.se> [Wed, 15 Dec 2021 11:24:45 +0100] rev 12052
mod_smacks: Fix typo
Kim Alvefur <zash@zash.se> [Tue, 14 Dec 2021 12:59:38 +0100] rev 12051
mod_smacks: Flag both sessions to prevent duplicating queue on resumption
I have no idea what is going on in this code, which session is which?
Something has one of the sessions as an upvalue which is where the
filter checks for it.
Kim Alvefur <zash@zash.se> [Mon, 06 Dec 2021 11:49:22 +0100] rev 12050
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.
Kim Alvefur <zash@zash.se> [Mon, 13 Dec 2021 21:48:29 +0100] rev 12049
mod_smacks: Back out 48f8fa6cea7b - back in a86ae74da96c again
Maybe it works now with the session patching in the previous commit
Kim Alvefur <zash@zash.se> [Mon, 13 Dec 2021 21:46:49 +0100] rev 12048
mod_smacks: Patch various self-references on the resumed session
The number of places where the session is an upvalue to its own methods
is too high!