plugins/mod_bosh.lua
changeset 7379 f9a5d9f60561
parent 7378 6ae3cf899b25
child 7380 6c98e783272a
--- a/plugins/mod_bosh.lua	Tue Apr 19 12:14:07 2016 +0200
+++ b/plugins/mod_bosh.lua	Tue Apr 19 12:15:20 2016 +0200
@@ -126,8 +126,9 @@
 	-- In particular, the streamopened() stream callback is where
 	-- much of the session logic happens, because it's where we first
 	-- get to see the 'sid' of this request.
-	if not stream:feed(body) then
-		module:log("warn", "Error parsing BOSH payload")
+	local ok, err = stream:feed(body);
+	if not ok then
+		module:log("warn", "Error parsing BOSH payload; %s", err)
 		return 400;
 	end