aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-08-07 19:00:04 +0100
committerMatthew Wild <mwild1@gmail.com>2010-08-07 19:00:04 +0100
commit3deb503477daea5303b5d002bd82401be1a277f4 (patch)
tree0298c478303e3decfb73689c7a04dd540a1c277b /plugins
parent1a9f9282fc152100cb48ae810997cfb3ca0be2f0 (diff)
downloadprosody-3deb503477daea5303b5d002bd82401be1a277f4.tar.gz
prosody-3deb503477daea5303b5d002bd82401be1a277f4.zip
mod_bosh: Fix to properly ignore repeated requests
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 1d4d8096..2b95659c 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -288,6 +288,7 @@ function stream_callbacks.streamopened(request, attr)
-- Repeated, ignore
session.log("debug", "rid repeated (on request %s), ignoring: %s (diff %d)", request.id, session.rid, diff);
request.notopen = nil;
+ request.ignore = true;
request.sid = sid;
t_insert(session.requests, request);
return;
@@ -316,6 +317,7 @@ function stream_callbacks.streamopened(request, attr)
end
function stream_callbacks.handlestanza(request, stanza)
+ if request.ignore then return; end
log("debug", "BOSH stanza received: %s\n", stanza:top_tag());
local session = sessions[request.sid];
if session then