mod_smacks: Request ack on signal of ongoing CSI flush
Should make it finally behave with mod_csi_simple from Prosody trunk
--- a/mod_smacks/mod_smacks.lua Tue Feb 16 22:49:44 2021 +0100
+++ b/mod_smacks/mod_smacks.lua Tue Feb 16 23:16:05 2021 +0100
@@ -645,6 +645,10 @@
request_ack_if_needed(event.origin, true, "csi-active", nil);
end);
+module:hook("csi-flushing", function (event)
+ request_ack_if_needed(event.session, true, "csi-active", nil);
+end);
+
local function handle_read_timeout(event)
local session = event.session;
if session.smacks then