changeset 14028:04d7f2038933 13.0

mod_s2s: Explicitly prevent sending recursive error replies when queue is full
author Kim Alvefur <zash@zash.se>
date Sun, 04 Jan 2026 17:58:26 +0100
parents 4a288b082f42
children e08e535a9945 fe024a5be7e6
files plugins/mod_s2s.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_s2s.lua	Sun Jan 04 17:54:48 2026 +0100
+++ b/plugins/mod_s2s.lua	Sun Jan 04 17:58:26 2026 +0100
@@ -201,7 +201,7 @@
 		end
 		if not host.sendq:push(st.clone(stanza)) then
 			host.log("warn", "stanza [%s] not queued ", stanza.name);
-			if not event.origin then return false; end
+			if not event.origin or stanza.attr.type == "error" or stanza.attr.type == "result" then return false; end
 			event.origin.send(st.error_reply(stanza, "wait", "resource-constraint", "Outgoing stanza queue full"));
 			return true;
 		end