Comparison

plugins/mod_compression.lua @ 3200:fd2389a240a2

mod_compression: Removed some useless logging code.
author Waqas Hussain <waqas20@gmail.com>
date Tue, 08 Jun 2010 16:33:32 +0500
parent 2892:9f214431de29
child 3202:1a8a5b89a5ad
child 3295:8865d1b3dce2
comparison
equal deleted inserted replaced
3199:0badae62de28 3200:fd2389a240a2
96 local function setup_compression(session, deflate_stream) 96 local function setup_compression(session, deflate_stream)
97 local old_send = (session.sends2s or session.send); 97 local old_send = (session.sends2s or session.send);
98 98
99 local new_send = function(t) 99 local new_send = function(t)
100 --TODO: Better code injection in the sending process 100 --TODO: Better code injection in the sending process
101 session.log(t)
102 local status, compressed, eof = pcall(deflate_stream, tostring(t), 'sync'); 101 local status, compressed, eof = pcall(deflate_stream, tostring(t), 'sync');
103 if status == false then 102 if status == false then
104 session:close({ 103 session:close({
105 condition = "undefined-condition"; 104 condition = "undefined-condition";
106 text = compressed; 105 text = compressed;