Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 5644:f9cfe6f5d60f
mod_bosh: Reset creating_session to prevent putting unnecessary attributes into every BOSH response
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 Jun 2013 21:35:50 +0100 |
parent | 5639:7a0e19e649b7 |
child | 5645:ae079d57af2e |
child | 5650:aa3465183b01 |
comparison
equal
deleted
inserted
replaced
5643:e612e1887e39 | 5644:f9cfe6f5d60f |
---|---|
282 ["xmlns:stream"] = "http://etherx.jabber.org/streams"; | 282 ["xmlns:stream"] = "http://etherx.jabber.org/streams"; |
283 type = session.bosh_terminate and "terminate" or nil; | 283 type = session.bosh_terminate and "terminate" or nil; |
284 sid = sid; | 284 sid = sid; |
285 }; | 285 }; |
286 if creating_session then | 286 if creating_session then |
287 creating_session = nil; | |
287 body_attr.inactivity = tostring(BOSH_DEFAULT_INACTIVITY); | 288 body_attr.inactivity = tostring(BOSH_DEFAULT_INACTIVITY); |
288 body_attr.polling = tostring(BOSH_DEFAULT_POLLING); | 289 body_attr.polling = tostring(BOSH_DEFAULT_POLLING); |
289 body_attr.requests = tostring(BOSH_DEFAULT_REQUESTS); | 290 body_attr.requests = tostring(BOSH_DEFAULT_REQUESTS); |
290 body_attr.wait = tostring(session.bosh_wait); | 291 body_attr.wait = tostring(session.bosh_wait); |
291 body_attr.hold = tostring(session.bosh_hold); | 292 body_attr.hold = tostring(session.bosh_hold); |