Skip to content

Conversation

@ioquatix
Copy link
Member

@ioquatix ioquatix commented Aug 7, 2021

There are some cases where you are using a zstream and don't care about the fact that it wasn't "closed". These warnings don't help at all, and create unnecessary output.

@ioquatix ioquatix requested a review from jeremyevans August 7, 2021 01:33
Copy link
Contributor

@jeremyevans jeremyevans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me. I agree that the warnings don't add value, most other finalizers in Ruby don't print warning messages.

@ioquatix ioquatix merged commit 9050d89 into master Aug 12, 2021
@ioquatix ioquatix deleted the free-less-warnings branch August 12, 2021 07:10
@nobu
Copy link
Member

nobu commented Aug 31, 2021

Zlib::GzipWriter still prints warnings.
Is this intentional?

zlib(finalizer): Zlib::GzipWriter object must be closed explicitly.
zlib(finalizer): the stream was freed prematurely.

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

Successfully merging this pull request may close these issues.

4 participants