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

Flate: try to inflate even if @stream.avail_in is 0 #4193

Merged

Conversation

makenowjust
Copy link
Contributor

Fix #4192

We cannot assume the end of a stream even if @stream.avail_in is 0. z_stream's internal state may have more outputs, #4192 for example. Probably LibZ::Error::STREAM_END is only way to detect the end of a stream.

Fix crystal-lang#4192

Probably LibZ::Error::STREAM_END is only way to detect the end of a stream.
@makenowjust
Copy link
Contributor Author

Hmm... Is Thread's spec on macOS broken? https://travis-ci.org/crystal-lang/crystal/jobs/214936464

@Sija
Copy link
Contributor

Sija commented Mar 26, 2017

@makenowjust yep, it seems there sth wrong with macOS + xcode 8.2 on travis CI :/

@bcardiff bcardiff added this to the Next milestone Mar 27, 2017
@bcardiff bcardiff merged commit 6a45e08 into crystal-lang:master Mar 27, 2017
@bcardiff
Copy link
Member

Thanks @makenowjust the refactor brought back some corner cases again ...

@need47
Copy link
Contributor

need47 commented Mar 27, 2017

and thanks for the quick response and fix

@makenowjust makenowjust deleted the fix/flate/reader-believe-stream-end branch March 27, 2017 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants