Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 763:8e77a39826c2
mod_bosh: No need to tostring() uuids now
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 01 Feb 2009 02:20:11 +0000 |
parent | 725:96110075288b |
child | 771:ecdf72f9b085 |
comparison
equal
deleted
inserted
replaced
762:5ae018c016ba | 763:8e77a39826c2 |
---|---|
117 request.notopen = nil | 117 request.notopen = nil |
118 return; | 118 return; |
119 end | 119 end |
120 | 120 |
121 -- New session | 121 -- New session |
122 sid = tostring(new_uuid()); | 122 sid = new_uuid(); |
123 local session = { type = "c2s_unauthed", conn = {}, sid = sid, rid = attr.rid, host = attr.to, bosh_version = attr.ver, bosh_wait = attr.wait, streamid = sid, | 123 local session = { type = "c2s_unauthed", conn = {}, sid = sid, rid = attr.rid, host = attr.to, bosh_version = attr.ver, bosh_wait = attr.wait, streamid = sid, |
124 bosh_hold = BOSH_DEFAULT_HOLD, bosh_max_inactive = BOSH_DEFAULT_INACTIVITY, | 124 bosh_hold = BOSH_DEFAULT_HOLD, bosh_max_inactive = BOSH_DEFAULT_INACTIVITY, |
125 requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream, close = bosh_close_stream, dispatch_stanza = core_process_stanza }; | 125 requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream, close = bosh_close_stream, dispatch_stanza = core_process_stanza }; |
126 sessions[sid] = session; | 126 sessions[sid] = session; |
127 log("info", "New BOSH session, assigned it sid '%s'", sid); | 127 log("info", "New BOSH session, assigned it sid '%s'", sid); |