Software /
code /
prosody
Changeset
12078:2c13aaae35ac
mod_smacks: Fix typos
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 20 Dec 2021 00:06:47 +0100 |
parents | 12077:061d516d8ac5 |
children | 12079:76a5c0261793 |
files | plugins/mod_smacks.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_smacks.lua Mon Dec 20 00:04:32 2021 +0100 +++ b/plugins/mod_smacks.lua Mon Dec 20 00:06:47 2021 +0100 @@ -116,7 +116,7 @@ if session.state == "inactive" then max_unacked = max_inactive_unacked_stanzas; end - -- this check of last_requested_h prevents ack-loops if missbehaving clients report wrong + -- this check of last_requested_h prevents ack-loops if misbehaving clients report wrong -- stanza counts. it is set when an <r> is really sent (e.g. inside timer), preventing any -- further requests until a higher h-value would be expected. return queue:count_unacked() > max_unacked and expected_h ~= session.last_requested_h; @@ -635,7 +635,7 @@ return end local reason = event.reason; - -- Close smacks-enaled sessions ourselves instead of letting mod_c2s close + -- Close smacks-enabled sessions ourselves instead of letting mod_c2s close -- it, which invalidates the smacks session. This allows preserving the -- counter value, so it can be communicated to the client when it tries to -- resume the lost session after a restart.