Comparison

plugins/mod_admin_shell.lua @ 12056:e62025f949f9

mod_smacks: Limit queue memory consumption using new util This brings back the queue size limit that was once added, then removed because destroying the session when reaching the limit was not great. Instead, the queue wraps and overwrites the oldest unacked stanza on the assumption that it will probably be acked anyway and thus does not need to be delivered. If those discarded stanzas turn out to be needed on resumption then the resumption fails.
author Kim Alvefur <zash@zash.se>
date Tue, 14 Dec 2021 20:00:45 +0100
parent 12023:5a3781a12285
child 12122:50795249b7be
comparison
equal deleted inserted replaced
12055:daced16154fa 12056:e62025f949f9
813 title = "SM Queue"; 813 title = "SM Queue";
814 key = "outgoing_stanza_queue"; 814 key = "outgoing_stanza_queue";
815 width = 8; 815 width = 8;
816 align = "right"; 816 align = "right";
817 mapper = function (queue) 817 mapper = function (queue)
818 return queue and tostring(#queue); 818 return queue and tostring(queue:count_unacked());
819 end 819 end
820 }; 820 };
821 csi = { 821 csi = {
822 title = "CSI State"; 822 title = "CSI State";
823 key = "state"; 823 key = "state";