Changeset

2251:48c3d64a3fc1

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
author Kim Alvefur <zash@zash.se>
date Tue, 26 Jul 2016 12:37:04 +0200
parents 2250:f5cc6328b20f
children 2252:a96f2d0f8750
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;