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

Fix DataError exception #1984

Closed
wants to merge 7 commits into from
Closed

Fix DataError exception #1984

wants to merge 7 commits into from

Conversation

jl2005
Copy link
Contributor

@jl2005 jl2005 commented May 15, 2018

Fixed #1903 #1847

This exception is caused by submit_flush_once wake up the output thread and interrupting gzip compression, causing a DataError exception to be thrown in the close.

repeatedly added a commit that referenced this pull request Nov 8, 2018
Thread#run causes unexpected interruption and it affects
the behaviour of some libraries, e.g. DataError in zlib.
Use condition variable instead to handle thread execution.

This change is based on jl2005's #1984 patch.

Signed-off-by: Masahiro Nakagawa <[email protected]>
@repeatedly
Copy link
Member

This patch has a bug of thread control so I wrote new patch based on this change and merged.

1c79a23

Thanks for the contribution!

@repeatedly repeatedly closed this Nov 11, 2018
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.

buffer flush failed by unexpected Zlib::DataError
2 participants