Comparison

plugins/mod_smacks.lua @ 11985:3740cf7a66a3

mod_smacks: Remove obsolete comment It dates back to the initial commit in prosody-modules 9a7671720dec
author Kim Alvefur <zash@zash.se>
date Thu, 02 Dec 2021 14:28:52 +0100
parent 11984:a86ae74da96c
child 11996:3dd7886f9342
comparison
equal deleted inserted replaced
11984:a86ae74da96c 11985:3740cf7a66a3
390 request_ack_now_if_needed(origin, false, "handle_a", nil) 390 request_ack_now_if_needed(origin, false, "handle_a", nil)
391 return true; 391 return true;
392 end 392 end
393 module:hook_tag(xmlns_sm2, "a", handle_a); 393 module:hook_tag(xmlns_sm2, "a", handle_a);
394 module:hook_tag(xmlns_sm3, "a", handle_a); 394 module:hook_tag(xmlns_sm3, "a", handle_a);
395
396 --TODO: Optimise... incoming stanzas should be handled by a per-session
397 -- function that has a counter as an upvalue (no table indexing for increments,
398 -- and won't slow non-198 sessions). We can also then remove the .handled flag
399 -- on stanzas
400 395
401 local function handle_unacked_stanzas(session) 396 local function handle_unacked_stanzas(session)
402 local queue = session.outgoing_stanza_queue; 397 local queue = session.outgoing_stanza_queue;
403 local error_attr = { type = "cancel" }; 398 local error_attr = { type = "cancel" };
404 if #queue > 0 then 399 if #queue > 0 then