Software /
code /
prosody-modules
Diff
mod_smacks/mod_smacks.lua @ 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 |
parent | 2148:c472a454be61 |
child | 2394:4c27ebcf4cbd |
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;