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 goroutine leak in celostats login. #1206

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

oneeman
Copy link
Contributor

@oneeman oneeman commented Nov 2, 2020

The channel needs to be buffered, so that if a timeout occurs the goroutine would still be able to terminate.

Description

Fixes a goroutine leak spotted by @zviadm. Note that this leak is new, and was not present on v1.1.0.

Tested

Not tested directly, but build and unit tests pass.

Related issues

Backwards compatibility

No effect on protocols, so no backwards compatibility concerns.

The channel needs to be buffered, so that if a timeout occurs the goroutine would still be able to terminate.
Copy link
Contributor

@trianglesphere trianglesphere left a comment

Choose a reason for hiding this comment

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

lgtm

@mergify mergify bot merged commit 3ec84d1 into master Nov 2, 2020
@mergify mergify bot deleted the oneeman/celostats-goroutine-leak-fix branch November 2, 2020 18:15
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.

None yet

2 participants