mod_smacks: Signal that we're about to send an ack request from read timeout event to prevent a duplicate request from outgoing stanza filter
authorKim Alvefur <zash@zash.se>
Tue, 26 Jul 2016 12:37:04 +0200
changeset 2255 48c3d64a3fc1
parent 2254 f5cc6328b20f
child 2256 a96f2d0f8750
mod_smacks: Signal that we're about to send an ack request from read timeout event to prevent a duplicate request from outgoing stanza filter
mod_smacks/mod_smacks.lua
--- a/mod_smacks/mod_smacks.lua	Tue Jul 26 11:49:57 2016 +0200
+++ b/mod_smacks/mod_smacks.lua	Tue Jul 26 12:37:04 2016 +0200
@@ -408,6 +408,7 @@
 			return false; -- Kick the session
 		end
 		session.log("debug", "Sending <r> (read timeout)");
+		session.awaiting_ack = false;
 		(session.sends2s or session.send)(st.stanza("r", { xmlns = session.smacks }));
 		session.awaiting_ack = true;
 		return true;