From 363d0578c0a0af5e7338e563b8484b3f05bed788 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 22 Aug 2010 21:36:04 +0100 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 2b95659c..e07ffbaa 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -211,7 +211,7 @@ function stream_callbacks.streamopened(request, attr) -- 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, -- cgit v1.2.3