mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 06:37:37 +03:00
mod_compression: Remove the unneccessary stream:reset() overloading, which was causing double decompression and c2s/s2s failures
This commit is contained in:
parent
a92e0df397
commit
193e01e5b9
1 changed files with 0 additions and 12 deletions
|
@ -142,12 +142,6 @@ module:add_handler({"s2sout_unauthed", "s2sout"}, "compressed", xmlns_compressio
|
||||||
|
|
||||||
-- setup decompression for session.data
|
-- setup decompression for session.data
|
||||||
setup_decompression(session, inflate_stream);
|
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();
|
session:reset_stream();
|
||||||
local default_stream_attr = {xmlns = "jabber:server", ["xmlns:stream"] = "http://etherx.jabber.org/streams",
|
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};
|
["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 for session.data
|
||||||
setup_decompression(session, inflate_stream);
|
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;
|
session.compressed = true;
|
||||||
elseif method then
|
elseif method then
|
||||||
session.log("debug", "%s compression selected, but we don't support it.", tostring(method));
|
session.log("debug", "%s compression selected, but we don't support it.", tostring(method));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue