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

query: fix a goroutine leak when the routing table is empty #329

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

Stebalien
Copy link
Member

@Stebalien Stebalien commented Apr 26, 2019

When the routing table is empty, Run would fail but not close the process (leaking some query goroutines). This patch fixes this in multiple places by:

  1. Not starting queries with no peers.
  2. Failing queries with no peers earlier.

When the routing table is empty, `Run` would fail but _not_ close the
process (leaking some query goroutines). This patch fixes this in multiple
places by:

1. Not starting queries with no peers.
2. Failing queries with no peers earlier.
@ghost ghost assigned Stebalien Apr 26, 2019
@ghost ghost added the status/in-progress In progress label Apr 26, 2019
@Stebalien Stebalien requested a review from raulk April 26, 2019 19:57
@Stebalien Stebalien merged commit fb62272 into master Apr 26, 2019
@Stebalien Stebalien deleted the fix/goroutine-leak-empty-routing branch April 26, 2019 20:14
@ghost ghost removed the status/in-progress In progress label Apr 26, 2019
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