aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-08-22 21:36:04 +0100
committerMatthew Wild <mwild1@gmail.com>2010-08-22 21:36:04 +0100
commit363d0578c0a0af5e7338e563b8484b3f05bed788 (patch)
tree7460ed079b23ce08a6370cfff8d2a3a390c8e0f8 /plugins
parent85921c4877eb579130d39731ec40549a76e2e992 (diff)
downloadprosody-363d0578c0a0af5e7338e563b8484b3f05bed788.tar.gz
prosody-363d0578c0a0af5e7338e563b8484b3f05bed788.zip
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
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,