Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have to call stream.finish() with GZipOutputStream #21

Closed
twinforces opened this issue Jan 18, 2012 · 4 comments
Closed

Have to call stream.finish() with GZipOutputStream #21

twinforces opened this issue Jan 18, 2012 · 4 comments

Comments

@twinforces
Copy link
Contributor

GZipOutputStream doesn't always return good results if you don't call stream.finish() before calling stream.close(). Weird, buggy, but true.

@twinforces
Copy link
Contributor Author

Here's a link:

http://wondersofcomputing.blogspot.com/2010/02/gzipoutputstream-remember-to-finish.html

Note that the javadocs for GZipOutputStream show the finish() call as well.

@t0xa
Copy link
Owner

t0xa commented Feb 6, 2012

Thanks. Will do.

t0xa added a commit that referenced this issue Feb 6, 2012
@t0xa
Copy link
Owner

t0xa commented Feb 6, 2012

Added.

@t0xa t0xa closed this as completed Feb 6, 2012
@twinforces
Copy link
Contributor Author

Hey, I have some other changes if you're interested to both simplify the code and make it work with non-blocking I/O. I didn't do it inside gelfj because I needed a Spring bean GelfSender, but let me know and I'll back port them to gelfj.

Added.


Reply to this email directly or view it on GitHub:
#21 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants