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

progressbar: several more race fixes #62

Closed
wants to merge 3 commits into from

Conversation

jonboulle
Copy link
Contributor

No description provided.

jonboulle added 3 commits May 29, 2016 14:32
By setting the value during the Read call, we potentially miss errors in
the CopyProgressPrinter's main loop, because the copyReader might have
not yet propagated them before it marks itself as done.
There's a race between the time we first check the error slice and when
we check for allDone, since a copyReader might finish and try to report
an error anywhere between this loop. Correct this by checking for errors
again before returning.

This is a stopgap - the real fix here is to refactor this a little more
invasively.
@lucab
Copy link
Contributor

lucab commented May 29, 2016

I had a look at this and I don't have any comments. However #63 rewrites most of this, so maybe you can just squash everything in that.

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.

2 participants