Software /
code /
prosody
Comparison
plugins/mod_smacks.lua @ 12076:ad1fe36eaae7
mod_smacks: Fix typo (thanks codespell)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 19 Dec 2021 15:00:22 +0100 |
parent | 12075:9f4d88f54a54 |
child | 12077:061d516d8ac5 |
comparison
equal
deleted
inserted
replaced
12075:9f4d88f54a54 | 12076:ad1fe36eaae7 |
---|---|
57 tail = { condition = "undefined-condition"; text = "Client acknowledged less stanzas than already acknowledged" }; | 57 tail = { condition = "undefined-condition"; text = "Client acknowledged less stanzas than already acknowledged" }; |
58 pop = { condition = "internal-server-error"; text = "Something went wrong with Stream Management" }; | 58 pop = { condition = "internal-server-error"; text = "Something went wrong with Stream Management" }; |
59 overflow = { condition = "resource-constraint", text = "Too many unacked stanzas remaining, session can't be resumed" } | 59 overflow = { condition = "resource-constraint", text = "Too many unacked stanzas remaining, session can't be resumed" } |
60 }); | 60 }); |
61 | 61 |
62 -- COMPAT note the use of compatibilty wrapper in events (queue:table()) | 62 -- COMPAT note the use of compatibility wrapper in events (queue:table()) |
63 | 63 |
64 local function ack_delayed(session, stanza) | 64 local function ack_delayed(session, stanza) |
65 -- fire event only if configured to do so and our session is not already hibernated or destroyed | 65 -- fire event only if configured to do so and our session is not already hibernated or destroyed |
66 if delayed_ack_timeout > 0 and session.awaiting_ack | 66 if delayed_ack_timeout > 0 and session.awaiting_ack |
67 and not session.hibernating and not session.destroyed then | 67 and not session.hibernating and not session.destroyed then |