aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-19 12:15:20 +0200
committerKim Alvefur <zash@zash.se>2016-04-19 12:15:20 +0200
commit4fea560fa7d84d2a6c90540537be72c15d6d300e (patch)
tree21351d3fd7b45f9aca6b1d9d5dcfc56fc8ede600 /plugins
parenta98e9745044896cccf3dc686f4b0eb04a3c10f38 (diff)
downloadprosody-4fea560fa7d84d2a6c90540537be72c15d6d300e.tar.gz
prosody-4fea560fa7d84d2a6c90540537be72c15d6d300e.zip
mod_bosh: Log error returned from stream:feed()
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index ce51ccc5..845df61a 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -126,8 +126,9 @@ function handle_POST(event)
-- 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