Software /
code /
prosody
Changeset
4527:d00f31470fcf
Merge with 0.9
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 19 Apr 2012 19:35:10 +0100 |
parents | 4525:e00b4ec5fca4 (current diff) 4526:cdab466551bd (diff) |
children | 4529:12621337471f |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Thu Mar 22 16:51:39 2012 +0000 +++ b/plugins/mod_bosh.lua Thu Apr 19 19:35:10 2012 +0100 @@ -123,10 +123,10 @@ -- 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