Changeset

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 7374:3e8851b7c6e8
children 7376:f9a5d9f60561
files plugins/mod_bosh.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;