From: Kim Alvefur Date: Tue, 19 Apr 2016 10:14:07 +0000 (+0200) Subject: mod_bosh: Return if a response has been sent already (See #343) X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=be7ee9023796412e20f223fb4fb56fccefc65cfe;p=prosody.git mod_bosh: Return if a response has been sent already (See #343) --- 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;