Software /
code /
prosody
Diff
plugins/mod_bosh.lua @ 8101:3e25d96571d1
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 20 Apr 2017 00:41:49 +0200 |
parent | 7660:d2825ddaac19 |
parent | 8097:e24263db3380 |
child | 8185:e89320b8a789 |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Sun Apr 16 02:36:42 2017 +0200 +++ b/plugins/mod_bosh.lua Thu Apr 20 00:41:49 2017 +0200 @@ -308,7 +308,7 @@ -- 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, @@ -384,6 +384,8 @@ return; end + session.conn = request.conn; + if session.rid then local rid = tonumber(attr.rid); local diff = rid - session.rid;