Software /
code /
prosody
Diff
plugins/mod_compression.lua @ 6368:bd0c8b361589
Merge 0.10->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 28 Aug 2014 12:05:18 +0100 |
parent | 6367:769a3577dd85 |
child | 6984:0f633160464c |
line wrap: on
line diff
--- a/plugins/mod_compression.lua Wed Aug 13 19:22:08 2014 +0200 +++ b/plugins/mod_compression.lua Thu Aug 28 12:05:18 2014 +0100 @@ -147,6 +147,12 @@ end end); +module:hook("stanza/http://jabber.org/protocol/compress:failure", function(event) + local err = event.stanza:get_child(); + (event.origin.log or module._log)("warn", "Compression setup failed (%s)", err and err.name or "unknown reason"); + return true; +end); + module:hook("stanza/http://jabber.org/protocol/compress:compress", function(event) local session, stanza = event.origin, event.stanza;