# HG changeset patch # User Kim Alvefur # Date 1461060920 -7200 # Node ID f9a5d9f6056185744dfe40a908620db46adf85c8 # Parent 6ae3cf899b25bcb7b3042534fed9f455d51469db mod_bosh: Log error returned from stream:feed() diff -r 6ae3cf899b25 -r f9a5d9f60561 plugins/mod_bosh.lua --- 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