diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-19 20:02:58 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-19 20:02:58 +0200 |
commit | 8c2d23ccd4e889b4121a5283f3b2492afacc0283 (patch) | |
tree | e52f761fb502153924cebccb346f39d132f20e90 /plugins | |
parent | 358ede93a7e8acea77b84d2d6434fe7300aba448 (diff) | |
parent | ac8f0e795fc916aa91a41d9f90a10396a737651c (diff) | |
download | prosody-8c2d23ccd4e889b4121a5283f3b2492afacc0283.tar.gz prosody-8c2d23ccd4e889b4121a5283f3b2492afacc0283.zip |
Merge 0.9->0.10
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_bosh.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 494d11b0..5ef0dfb6 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -281,7 +281,7 @@ function stream_callbacks.streamopened(context, attr) -- New session sid = new_uuid(); local session = { - type = "c2s_unauthed", conn = {}, sid = sid, rid = rid, host = attr.to, + type = "c2s_unauthed", conn = request.conn, sid = sid, rid = rid, host = attr.to, bosh_version = attr.ver, bosh_wait = wait, streamid = sid, bosh_max_inactive = bosh_max_inactivity, requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream, @@ -353,6 +353,8 @@ function stream_callbacks.streamopened(context, attr) return; end + session.conn = request.conn; + if session.rid then local rid = tonumber(attr.rid); local diff = rid - session.rid; |