waveto/node-compress

Error when calling deflate() or end()

Opened this issue · 2 comments

Hi
I am getting the following error when I try to call deflate() or end() from a different callback that created the the gzip object;

"node: ../compress.cc:72: int Gzip::GzipDeflate(char_, int, char__, int_): Assertion `ret != (-2)' failed.
Aborted"

I have no idea what this means.

I get the same problem. I actually made the gzip a global variable and I can only compress stuff once, (eg. I can compress 'something' but when I try to do it again with different data I get that error. ;x)

P.S: My terminology probably sucks, but yeh. I think you can figure what I meant

nevermind, I figured it. it seems like *.end(); un-initializes it or something, so you have to do initialize it every time before you deflate/inflate some data. The error report kinda fails though. x_x

Hope this helps.