aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-19 19:35:10 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-19 19:35:10 +0100
commita4d34ecc45ab3ff928b3823dc6748deee399adba (patch)
tree8b608d1c2031e9b4193a0307c221116873cfb6ab /plugins/mod_bosh.lua
parent6537bcfb9aeff46801c2e60ec691ac6e11b4e9b5 (diff)
parent01fbb05094892e35809b1da9d3778809a70c5e62 (diff)
downloadprosody-a4d34ecc45ab3ff928b3823dc6748deee399adba.tar.gz
prosody-a4d34ecc45ab3ff928b3823dc6748deee399adba.zip
Merge with 0.9
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 9de27b4b..8e87e140 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -123,10 +123,10 @@ function handle_request(method, body, request)
-- stream:feed() calls the stream_callbacks, so all stanzas in
-- the body are processed in this next line before it returns.
- -- 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.
- stream:feed(body);
+ local ok, err = stream:feed(body);
+ if not ok then
+ log("error", "Failed to parse BOSH payload: %s", err);
+ end
-- Stanzas (if any) in the request have now been processed, and
-- we take care of the high-level BOSH logic here, including