Comparison

mod_smacks/mod_smacks.lua @ 2091:ea95637cf041

mod_smacks: Log when sending <r> from read timeout event (0.10+)
author Kim Alvefur <zash@zash.se>
date Wed, 16 Mar 2016 13:30:03 +0100
parent 2090:1796a022dd29
child 2122:3f788f18cc10
comparison
equal deleted inserted replaced
2090:1796a022dd29 2091:ea95637cf041
402 if session.awaiting_ack_timer then 402 if session.awaiting_ack_timer then
403 session.awaiting_ack_timer:stop(); 403 session.awaiting_ack_timer:stop();
404 end 404 end
405 return false; -- Kick the session 405 return false; -- Kick the session
406 end 406 end
407 session.log("debug", "Sending <r> (read timeout)");
407 (session.sends2s or session.send)(st.stanza("r", { xmlns = session.smacks })); 408 (session.sends2s or session.send)(st.stanza("r", { xmlns = session.smacks }));
408 session.awaiting_ack = true; 409 session.awaiting_ack = true;
409 return true; 410 return true;
410 end 411 end
411 end 412 end