aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-19 12:14:07 +0200
committerKim Alvefur <zash@zash.se>2016-04-19 12:14:07 +0200
commita98e9745044896cccf3dc686f4b0eb04a3c10f38 (patch)
tree151f611f6c96bdcde376bc9fbd75f2fd70a0d6dd /plugins/mod_bosh.lua
parent637f02f551c03735ffecb301ecca114346faba98 (diff)
downloadprosody-a98e9745044896cccf3dc686f4b0eb04a3c10f38.tar.gz
prosody-a98e9745044896cccf3dc686f4b0eb04a3c10f38.zip
mod_bosh: Return if a response has been sent already (See #343)
Diffstat (limited to 'plugins/mod_bosh.lua')
-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 99451754..ce51ccc5 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -179,6 +179,8 @@ function handle_POST(event)
else
return true; -- Inform http server we shall reply later
end
+ elseif response.finished then
+ return; -- A response has been sent already
end
module:log("warn", "Unable to associate request with a session (incomplete request?)");
return 400;