Sun, 22 Aug 2010 21:36:04 +0100
mod_bosh: Don't adjust rid when creating a session, as this is no longer necessary and causes a log message ('rid too large') to be erroneously printed, fixes #203
plugins/mod_bosh.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/mod_bosh.lua Sun Aug 22 21:23:37 2010 +0100 +++ b/plugins/mod_bosh.lua Sun Aug 22 21:36:04 2010 +0100 @@ -211,7 +211,7 @@ -- New session sid = new_uuid(); local session = { - type = "c2s_unauthed", conn = {}, sid = sid, rid = tonumber(attr.rid)-1, host = attr.to, + type = "c2s_unauthed", conn = {}, sid = sid, rid = tonumber(attr.rid), host = attr.to, bosh_version = attr.ver, bosh_wait = attr.wait, streamid = sid, bosh_hold = BOSH_DEFAULT_HOLD, bosh_max_inactive = BOSH_DEFAULT_INACTIVITY, requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream,