Software /
code /
prosody
Changeset
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 |
parents | 3459:543f31cdde19 |
children | 3461:447634564356 |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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,