Software /
code /
prosody
Changeset
9777:2e07d2f71599 0.11
mod_bosh: Handle missing wait attribute (fixes #1288)
250855633092 did not fix this completely.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 10 Jan 2019 13:07:22 +0100 |
parents | 9776:c6cf32de940d |
children | 9778:ce5b2a149575 9788:f47b2ab877d0 |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Tue Jan 08 13:12:58 2019 +0000 +++ b/plugins/mod_bosh.lua Thu Jan 10 13:07:22 2019 +0100 @@ -277,7 +277,7 @@ response:send(tostring(close_reply)); return; end - if not rid or (not wait and attr.wait or wait < 0 or wait % 1 ~= 0) then + if not rid or (not attr.wait or not wait or wait < 0 or wait % 1 ~= 0) then log("debug", "BOSH client sent invalid rid or wait attributes: rid=%s, wait=%s", tostring(attr.rid), tostring(attr.wait)); local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate", ["xmlns:stream"] = xmlns_streams, condition = "bad-request" });