Mercurial > prosody-hg
diff plugins/mod_bosh.lua @ 7375:6ae3cf899b25
mod_bosh: Return if a response has been sent already (See #343)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 19 Apr 2016 12:14:07 +0200 |
| parents | 3e8851b7c6e8 |
| children | f9a5d9f60561 |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Tue Apr 19 12:13:03 2016 +0200 +++ b/plugins/mod_bosh.lua Tue Apr 19 12:14:07 2016 +0200 @@ -179,6 +179,8 @@ 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;
