DO NOT REPLY [Bug 27629] - Memory problem with GZIPOutputFilter

2004-03-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27629

Memory problem with GZIPOutputFilter

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-03-12 12:29 ---
As I understand it, only finish will output data. close is supposed to release
memory, so there shouldn't be any problem.
We really need to use a byte array based Java implementation for compression.
All the native code and fake streams make the code really bad.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27629] - Memory problem with GZIPOutputFilter

2004-03-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27629

Memory problem with GZIPOutputFilter





--- Additional Comments From [EMAIL PROTECTED]  2004-03-12 12:25 ---
Hi,

I assume, that this would also work. I am not very familiar with the 
architecture of the filtering, so I wanted to place the close() call as 
conservative as possible (after the buffer.end() call). It was just to be on 
the save side.

Regards,
Christian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27629] - Memory problem with GZIPOutputFilter

2004-03-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27629

Memory problem with GZIPOutputFilter





--- Additional Comments From [EMAIL PROTECTED]  2004-03-12 12:16 ---
And this wouldn't work ?
public long end()
throws IOException {
if (compressionStream == null) {
compressionStream = new GZIPOutputStream(fakeOutputStream);
}
compressionStream.finish();
compressionStream.close(); // frees the deflater memory!
return ((OutputFilter) buffer).end();
}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]