jahewson/node-deflate — Issue #5: miserable failure -- misuse?
Author: jmonster
Created: 2011-11-18 18:11:30+00:00
State: open

var _write = res.write;	// save the original write function
res.write = function(data) { // define a new write function
var dd = deflate.inflateSync(data); // deflate?
_write.call(res, data);	// call the original write function
};

node(1618) malloc: *** mmap(size=140737488355328) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

[2011-11-18 13:08:20.007] [ERROR] console - res.write error: Z_MEM_ERROR
[2011-11-18 13:08:20.008] [ERROR] console - res.write error: Z_DATA_ERROR