Closed twinforces closed 12 years ago
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.
Thanks. Will do.
Added.
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: https://github.com/t0xa/gelfj/issues/21#issuecomment-3833401
GZipOutputStream doesn't always return good results if you don't call stream.finish() before calling stream.close(). Weird, buggy, but true.