Comparison

plugins/smacks.lua @ 445:b119dc4d8bc2

plugins.smacks: Don't warn about zero stanzas acked It's only if the count somehow goes backwards that something is really wrong. An ack for zero stanzas is fine and we don't need to do anything.
author Kim Alvefur <zash@zash.se>
date Thu, 10 Jun 2021 11:58:23 +0200
parent 408:635cbd979d7b
child 446:62fb547bd31a
comparison
equal deleted inserted replaced
444:12c1be0044c6 445:b119dc4d8bc2
78 for i=last_ack+1,new_ack do 78 for i=last_ack+1,new_ack do
79 table.remove(outgoing_queue, 1); 79 table.remove(outgoing_queue, 1);
80 end 80 end
81 stream:debug("Received ack: New ack: "..new_ack.." Last ack: "..last_ack.." Unacked stanzas now: "..#outgoing_queue.." (was "..old_unacked..")"); 81 stream:debug("Received ack: New ack: "..new_ack.." Last ack: "..last_ack.." Unacked stanzas now: "..#outgoing_queue.." (was "..old_unacked..")");
82 last_ack = new_ack; 82 last_ack = new_ack;
83 else 83 elseif new_ack < last_ack then
84 stream:warn("Received bad ack for "..new_ack.." when last ack was "..last_ack); 84 stream:warn("Received bad ack for "..new_ack.." when last ack was "..last_ack);
85 end 85 end
86 elseif stanza.name == "enabled" then 86 elseif stanza.name == "enabled" then
87 87
88 if stanza.attr.id then 88 if stanza.attr.id then