# HG changeset patch # User Matthew Wild # Date 1523449477 -3600 # Node ID 8f2da579a7903ac08f3c18e1352db79874499a7c # Parent 469f78fe1c3ecb2295231da4be5b6eac663bf917 mod_bosh: Increase number of stored responses to ensure we always keep responses within the rid window available diff -r 469f78fe1c3e -r 8f2da579a790 plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Tue Apr 10 20:41:03 2018 +0100 +++ b/plugins/mod_bosh.lua Wed Apr 11 13:24:37 2018 +0100 @@ -287,7 +287,7 @@ 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):table(); + bosh_max_inactive = bosh_max_inactivity, bosh_responses = cache.new(BOSH_HOLD+1):table(); requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream, close = bosh_close_stream, dispatch_stanza = core_process_stanza, notopen = true, log = logger.init("bosh"..sid), secure = consider_bosh_secure or request.secure,