Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 7326:d11701e86702
mod_bosh: Skip sending stanzas removed out by filters (fixes #657)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 Apr 2016 18:56:26 +0200 |
parent | 7283:32754b15b28a |
child | 7327:d62f0471470f |
child | 7374:3e8851b7c6e8 |
comparison
equal
deleted
inserted
replaced
7325:7baf1b14defb | 7326:d11701e86702 |
---|---|
277 s = st.clone(s); | 277 s = st.clone(s); |
278 s.attr.xmlns = "jabber:client"; | 278 s.attr.xmlns = "jabber:client"; |
279 end | 279 end |
280 s = filter("stanzas/out", s); | 280 s = filter("stanzas/out", s); |
281 --log("debug", "Sending BOSH data: %s", tostring(s)); | 281 --log("debug", "Sending BOSH data: %s", tostring(s)); |
282 if not s then return true end | |
282 t_insert(session.send_buffer, tostring(s)); | 283 t_insert(session.send_buffer, tostring(s)); |
283 | 284 |
284 local oldest_request = r[1]; | 285 local oldest_request = r[1]; |
285 if oldest_request and not session.bosh_processing then | 286 if oldest_request and not session.bosh_processing then |
286 log("debug", "We have an open request, so sending on that"); | 287 log("debug", "We have an open request, so sending on that"); |