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

utils/chunker: fix blocking done chan. fixes #467 #469

Merged
merged 1 commit into from
Sep 17, 2018

Conversation

ilgooz
Copy link
Contributor

@ilgooz ilgooz commented Sep 17, 2018

No description provided.

@ilgooz ilgooz force-pushed the feature/fix-chunker branch from fdd4c8d to be04cd9 Compare September 17, 2018 08:33
if s.done == nil {
return nil
}
close(s.done)
Copy link
Contributor

Choose a reason for hiding this comment

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

In that case, done channel is not closed anywhere and it leads to leaks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is garbage collected. non-closed chans does not cause memory leaks

Copy link
Contributor

Choose a reason for hiding this comment

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

True, ok for me then

@NicolasMahe NicolasMahe merged commit 092468e into dev Sep 17, 2018
@NicolasMahe NicolasMahe deleted the feature/fix-chunker branch September 17, 2018 11:12
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