aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-11-10 15:06:00 +0100
committerKim Alvefur <zash@zash.se>2024-11-10 15:06:00 +0100
commitb126efdd1c4a1c9836d309c469ace3174d7ca5c5 (patch)
tree58d401f8994b476ce729db1ccd38cebfb5d9b213 /plugins
parent1b68565d701fa28a2b373646a018fd4d8451deb3 (diff)
downloadprosody-b126efdd1c4a1c9836d309c469ace3174d7ca5c5.tar.gz
prosody-b126efdd1c4a1c9836d309c469ace3174d7ca5c5.zip
mod_s2s: Fix counting items in outgoing stanza queue (in logs)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_s2s.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua
index c420eae3..6177608b 100644
--- a/plugins/mod_s2s.lua
+++ b/plugins/mod_s2s.lua
@@ -135,7 +135,7 @@ local bouncy_stanzas = { message = true, presence = true, iq = true };
local function bounce_sendq(session, reason)
local sendq = session.sendq;
if not sendq then return; end
- session.log("info", "Sending error replies for %d queued stanzas because of failed outgoing connection to %s", #sendq, session.to_host);
+ session.log("info", "Sending error replies for %d queued stanzas because of failed outgoing connection to %s", sendq.items(), session.to_host);
local dummy = {
type = "s2sin";
send = function ()
@@ -366,7 +366,7 @@ function mark_connected(session)
if session.direction == "outgoing" then
if sendq then
- session.log("debug", "sending %d queued stanzas across new outgoing connection to %s", #sendq, session.to_host);
+ session.log("debug", "sending %d queued stanzas across new outgoing connection to %s", sendq.items(), session.to_host);
local send = session.sends2s;
for stanza in sendq:consume() do
-- TODO check send success