# HG changeset patch # User Matthew Wild # Date 1282509364 -3600 # Node ID 742f6e5a40663f305cffffb1a9551648744d051d # Parent 543f31cdde1982708a2b1e81943ff8fd9083872b 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 diff -r 543f31cdde19 -r 742f6e5a4066 plugins/mod_bosh.lua --- 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,