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

Output Stream is closed during patch apply #6

Closed
andrewhayden opened this issue May 11, 2016 · 0 comments
Closed

Output Stream is closed during patch apply #6

andrewhayden opened this issue May 11, 2016 · 0 comments

Comments

@andrewhayden
Copy link
Contributor

The patch applier is close()ing the stream that is passed in because it traps the PartiallyDeflatingOutputStream in a finally block and close()'s there for safety. This should be a flush(), not a close(), as we don't own the output stream that is being used and other operations may need to be performed prior to close().

Don't close() the stream!

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

No branches or pull requests

1 participant