Diff

plugins/mod_bosh.lua @ 3460:742f6e5a4066

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
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Aug 2010 21:36:04 +0100
parent 3450:4bd78a5fee75
child 3472:61cf3e7d7f07
line wrap: on
line diff
--- 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,