aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_compression.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-08-28 12:05:18 +0100
committerMatthew Wild <mwild1@gmail.com>2014-08-28 12:05:18 +0100
commit580f0a2a97b67c80dcb77d386bf469912c5ddfcb (patch)
treef9b41c73e3cda1b1f3ffe63a3921967eea4a20d6 /plugins/mod_compression.lua
parentaf8588572ea3aef8d7c799315adaaf7c7bb64c4f (diff)
parente5cad1e21d8d45fb12dc0f3d53767c7fb875c96c (diff)
downloadprosody-580f0a2a97b67c80dcb77d386bf469912c5ddfcb.tar.gz
prosody-580f0a2a97b67c80dcb77d386bf469912c5ddfcb.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_compression.lua')
-rw-r--r--plugins/mod_compression.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua
index 969172fd..da55e5bb 100644
--- a/plugins/mod_compression.lua
+++ b/plugins/mod_compression.lua
@@ -147,6 +147,12 @@ module:hook("stanza/http://jabber.org/protocol/compress:compressed", function(ev
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;