Comparison

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
comparison
equal deleted inserted replaced
3459:543f31cdde19 3460:742f6e5a4066
209 end 209 end
210 210
211 -- New session 211 -- New session
212 sid = new_uuid(); 212 sid = new_uuid();
213 local session = { 213 local session = {
214 type = "c2s_unauthed", conn = {}, sid = sid, rid = tonumber(attr.rid)-1, host = attr.to, 214 type = "c2s_unauthed", conn = {}, sid = sid, rid = tonumber(attr.rid), host = attr.to,
215 bosh_version = attr.ver, bosh_wait = attr.wait, streamid = sid, 215 bosh_version = attr.ver, bosh_wait = attr.wait, streamid = sid,
216 bosh_hold = BOSH_DEFAULT_HOLD, bosh_max_inactive = BOSH_DEFAULT_INACTIVITY, 216 bosh_hold = BOSH_DEFAULT_HOLD, bosh_max_inactive = BOSH_DEFAULT_INACTIVITY,
217 requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream, 217 requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream,
218 close = bosh_close_stream, dispatch_stanza = core_process_stanza, 218 close = bosh_close_stream, dispatch_stanza = core_process_stanza,
219 log = logger.init("bosh"..sid), secure = consider_bosh_secure or request.secure 219 log = logger.init("bosh"..sid), secure = consider_bosh_secure or request.secure