Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

fix(prq): fix a bunch of goroutine leaks and deadlocks #87

Merged
merged 7 commits into from
Feb 27, 2019
Merged

Conversation

Stebalien
Copy link
Member

@Stebalien Stebalien commented Feb 27, 2019

I've added a few tests but we should probably prioritize bitswap test coverage in the near future.

@ghost ghost assigned Stebalien Feb 27, 2019
@ghost ghost added the status/in-progress In progress label Feb 27, 2019
@@ -228,7 +237,7 @@ func (pqm *ProviderQueryManager) findProviderWorker() {
wg.Add(1)
go func(p peer.ID) {
defer wg.Done()
err := pqm.network.ConnectTo(pqm.ctx, p)
err := pqm.network.ConnectTo(findProviderCtx, p)
Copy link
Member Author

Choose a reason for hiding this comment

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

Is this correct? I can't remember if we did this for a reason.

Copy link
Member Author

Choose a reason for hiding this comment

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

Historical note: this was not correct. See #226.

@Stebalien Stebalien merged commit 52d6095 into master Feb 27, 2019
@Stebalien
Copy link
Member Author

(reviewed by @hannahhoward)

@ghost ghost removed the status/in-progress In progress label Feb 27, 2019
@Stebalien Stebalien deleted the fix/leak branch February 27, 2019 18:21
Jorropo pushed a commit to Jorropo/go-libipfs that referenced this pull request Jan 26, 2023
fix(prq): fix a bunch of goroutine leaks and deadlocks

This commit was moved from ipfs/go-bitswap@52d6095
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant