diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-06-10 01:55:32 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-06-10 01:55:32 +0100 |
commit | 193e01e5b988ec2d8dc571a18f3e80c6260edb1f (patch) | |
tree | dd53ef3e019cd2c0e57fcfe0c31873fa679bc259 /plugins/mod_compression.lua | |
parent | a92e0df397182f7c9924a3893364fc295de07ef3 (diff) | |
download | prosody-193e01e5b988ec2d8dc571a18f3e80c6260edb1f.tar.gz prosody-193e01e5b988ec2d8dc571a18f3e80c6260edb1f.zip |
mod_compression: Remove the unneccessary stream:reset() overloading, which was causing double decompression and c2s/s2s failures
Diffstat (limited to 'plugins/mod_compression.lua')
-rw-r--r-- | plugins/mod_compression.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua index 689a322f..0bee5b12 100644 --- a/plugins/mod_compression.lua +++ b/plugins/mod_compression.lua @@ -142,12 +142,6 @@ module:add_handler({"s2sout_unauthed", "s2sout"}, "compressed", xmlns_compressio -- setup decompression for session.data setup_decompression(session, inflate_stream); - local session_reset_stream = session.reset_stream; - session.reset_stream = function(session) - session_reset_stream(session); - setup_decompression(session, inflate_stream); - return true; - end; session:reset_stream(); local default_stream_attr = {xmlns = "jabber:server", ["xmlns:stream"] = "http://etherx.jabber.org/streams", ["xmlns:db"] = 'jabber:server:dialback', version = "1.0", to = session.to_host, from = session.from_host}; @@ -189,12 +183,6 @@ module:add_handler({"c2s_unauthed", "c2s", "s2sin_unauthed", "s2sin"}, "compress -- setup decompression for session.data setup_decompression(session, inflate_stream); - local session_reset_stream = session.reset_stream; - session.reset_stream = function(session) - session_reset_stream(session); - setup_decompression(session, inflate_stream); - return true; - end; session.compressed = true; elseif method then session.log("debug", "%s compression selected, but we don't support it.", tostring(method)); |