# HG changeset patch # User Matthew Wild # Date 1710670224 0 # Node ID a688947fab1e869cb0dce40dda0b4f3eb07cbd7f # Parent 790f60c0843b69de33cc2324c0f95eeaecfb5ead mod_bosh: Set base_type on session This fixes a traceback with mod_saslauth. Ideally we move this to util.session at some point, though. diff -r 790f60c0843b -r a688947fab1e plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Sun Mar 10 15:56:01 2024 +0100 +++ b/plugins/mod_bosh.lua Sun Mar 17 10:10:24 2024 +0000 @@ -325,7 +325,7 @@ sid = new_uuid(); -- TODO use util.session local session = { - type = "c2s_unauthed", conn = request.conn, sid = sid, host = attr.to, + base_type = "c2s", type = "c2s_unauthed", conn = request.conn, sid = sid, host = attr.to, rid = rid - 1, -- Hack for initial session setup, "previous" rid was $current_request - 1 bosh_version = attr.ver, bosh_wait = wait, streamid = sid, bosh_max_inactive = bosh_max_inactivity, bosh_responses = cache.new(BOSH_HOLD+1):table();