Software /
code /
prosody-modules
Diff
mod_smacks/mod_smacks.lua @ 4446:3d593b612e07
mod_smacks: Request ack on signal of ongoing CSI flush
Should make it finally behave with mod_csi_simple from Prosody trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 16 Feb 2021 23:16:05 +0100 |
parent | 4445:e13eb0f851c8 |
child | 4458:5234d0c8883d |
line wrap: on
line diff
--- 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