Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 5670:9218a0e81a41
mod_bosh: Fix global write
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 07 Jun 2013 17:47:27 +0100 |
parent | 5650:aa3465183b01 |
child | 5671:d5059e73db53 |
comparison
equal
deleted
inserted
replaced
5665:da1881e1b35b | 5670:9218a0e81a41 |
---|---|
290 body_attr.requests = tostring(BOSH_DEFAULT_REQUESTS); | 290 body_attr.requests = tostring(BOSH_DEFAULT_REQUESTS); |
291 body_attr.wait = tostring(session.bosh_wait); | 291 body_attr.wait = tostring(session.bosh_wait); |
292 body_attr.hold = tostring(session.bosh_hold); | 292 body_attr.hold = tostring(session.bosh_hold); |
293 body_attr.authid = sid; | 293 body_attr.authid = sid; |
294 body_attr.secure = "true"; | 294 body_attr.secure = "true"; |
295 body_attr.ver = '1.6'; from = session.host; | 295 body_attr.ver = '1.6'; |
296 body_attr.from = session.host; | |
296 body_attr["xmlns:xmpp"] = "urn:xmpp:xbosh"; | 297 body_attr["xmlns:xmpp"] = "urn:xmpp:xbosh"; |
297 body_attr["xmpp:version"] = "1.0"; | 298 body_attr["xmpp:version"] = "1.0"; |
298 end | 299 end |
299 oldest_request:send(st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer).."</body>"); | 300 oldest_request:send(st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer).."</body>"); |
300 session.send_buffer = {}; | 301 session.send_buffer = {}; |