# HG changeset patch # User Kim Alvefur # Date 1469529424 -7200 # Node ID 48c3d64a3fc1032261ccb46fe5b7f2cadc52ad37 # Parent f5cc6328b20ff9f7bdaaeac3b588976d3601d0fe 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 diff -r f5cc6328b20f -r 48c3d64a3fc1 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 (read timeout)"); + session.awaiting_ack = false; (session.sends2s or session.send)(st.stanza("r", { xmlns = session.smacks })); session.awaiting_ack = true; return true;