Commit graph

3 commits

Author SHA1 Message Date
Kim Alvefur
98da2af369 util.smqueue: Improve tests
Result of mutation testing. One mutant remaining.
2022-10-19 14:34:41 +02:00
Kim Alvefur
081647ea1f util.smqueue: Simplify compat table, fix dependent modules (thanks Martin)
There was an off-by-one in the modulo calculation. Switching to a plain
old array-table makes the apparent size of the queue wrong, but since
some of the queue may not be available this is likely for the best.
2021-12-16 12:16:45 +01:00
Kim Alvefur
93a9ed2620 util.smqueue: Abstract queue with acknowledgements and overflow
Meant to be used in mod_smacks for XEP-0198

Meant to have a larger virtual size than actual number of items stored,
on the theory that in most cases, the excess will be acked before needed
for a resumption event.
2021-12-14 19:58:53 +01:00