Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix leak of file handles that prevents gzip files from being cleaned up
Use `Zlib::GzipWriter::new(IO)` instead of `Zlib::GzipWriter::open(Object)`, since the latter effectively creates an additional file handle when passed an `IO`. This ensures that when we send `Zlib::GzipWriter#close`, the original `IO` is closed in turn. Resolves: logstash-plugins#190
- Loading branch information