diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-05-21 19:27:06 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-05-21 19:27:06 +0100 |
commit | a7048b7c938909b1fc915823b2963ae0dfcf1203 (patch) | |
tree | 4b12a7dbbce3ee82615eafbc20f82ecb3cea854a /plugins/mod_bosh.lua | |
parent | d20a2a83c7a141f4eb8cb161cf1d6bfd97eaa1e1 (diff) | |
download | prosody-a7048b7c938909b1fc915823b2963ae0dfcf1203.tar.gz prosody-a7048b7c938909b1fc915823b2963ae0dfcf1203.zip |
mod_bosh: Re-layout session object creation to make lines shorter
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r-- | plugins/mod_bosh.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 6326a743..66a79785 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -176,10 +176,14 @@ 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, 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, close = bosh_close_stream, - dispatch_stanza = core_process_stanza, log = logger.init("bosh"..sid), secure = consider_bosh_secure or request.secure }; + local session = { + type = "c2s_unauthed", conn = {}, sid = sid, rid = tonumber(attr.rid)-1, 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, + close = bosh_close_stream, dispatch_stanza = core_process_stanza, + log = logger.init("bosh"..sid), secure = consider_bosh_secure or request.secure + }; sessions[sid] = session; log("info", "New BOSH session, assigned it sid '%s'", sid); |