Comparison

plugins/mod_bosh.lua @ 11808:c24580a214f3

mod_bosh: Fix typo in comment
author Kim Alvefur <zash@zash.se>
date Sun, 19 Sep 2021 16:28:16 +0200
parent 11771:4c0802b52673
child 11868:ae093c259da2
comparison
equal deleted inserted replaced
11807:f5295e59ca78 11808:c24580a214f3
321 321
322 wait = math_min(wait, bosh_max_wait); 322 wait = math_min(wait, bosh_max_wait);
323 323
324 -- New session 324 -- New session
325 sid = new_uuid(); 325 sid = new_uuid();
326 -- TODO use util.sesssion 326 -- TODO use util.session
327 local session = { 327 local session = {
328 type = "c2s_unauthed", conn = request.conn, sid = sid, host = attr.to, 328 type = "c2s_unauthed", conn = request.conn, sid = sid, host = attr.to,
329 rid = rid - 1, -- Hack for initial session setup, "previous" rid was $current_request - 1 329 rid = rid - 1, -- Hack for initial session setup, "previous" rid was $current_request - 1
330 bosh_version = attr.ver, bosh_wait = wait, streamid = sid, 330 bosh_version = attr.ver, bosh_wait = wait, streamid = sid,
331 bosh_max_inactive = bosh_max_inactivity, bosh_responses = cache.new(BOSH_HOLD+1):table(); 331 bosh_max_inactive = bosh_max_inactivity, bosh_responses = cache.new(BOSH_HOLD+1):table();