aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-04-11 13:24:37 +0100
committerMatthew Wild <mwild1@gmail.com>2018-04-11 13:24:37 +0100
commit1325ac697f8bdc1c0255554aea74f902e29cb13a (patch)
treefc2cfbf96f4f04ba6e955a7423d3972a38bd94ba /plugins
parente80b1659772cac877f634d96396384a95b2c4e60 (diff)
downloadprosody-1325ac697f8bdc1c0255554aea74f902e29cb13a.tar.gz
prosody-1325ac697f8bdc1c0255554aea74f902e29cb13a.zip
mod_bosh: Increase number of stored responses to ensure we always keep responses within the rid window available
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 5ed742fc..c662fa5c 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -287,7 +287,7 @@ function stream_callbacks.streamopened(context, attr)
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,