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

fix(decision): fix a datarace on disconnect #508

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

Stebalien
Copy link
Member

We need to hold the ledger's lock while reading from it.

We need to hold the ledger's lock while reading from it.
@Stebalien
Copy link
Member Author

Unfortunately, there are still some fundamental (logical) races here. But this should be better than it was, and we have other mitigations for those races.

TL;DR: We need to better manage wantlists.

@Stebalien Stebalien merged commit 5f2fd63 into master Jun 24, 2021
@Stebalien Stebalien deleted the fix/disconnect-data-race branch June 24, 2021 19:12
@aschmahmann aschmahmann mentioned this pull request Aug 23, 2021
62 tasks
Jorropo pushed a commit to Jorropo/go-libipfs that referenced this pull request Jan 26, 2023
…race

fix(decision): fix a datarace on disconnect

This commit was moved from ipfs/go-bitswap@5f2fd63
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