diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-08-07 19:00:04 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-08-07 19:00:04 +0100 |
commit | 3deb503477daea5303b5d002bd82401be1a277f4 (patch) | |
tree | 0298c478303e3decfb73689c7a04dd540a1c277b | |
parent | 1a9f9282fc152100cb48ae810997cfb3ca0be2f0 (diff) | |
download | prosody-3deb503477daea5303b5d002bd82401be1a277f4.tar.gz prosody-3deb503477daea5303b5d002bd82401be1a277f4.zip |
mod_bosh: Fix to properly ignore repeated requests
-rw-r--r-- | plugins/mod_bosh.lua | 2 |
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 |