Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
a44198e3
Unverified
Commit
a44198e3
authored
Feb 27, 2020
by
dirkmc
Committed by
GitHub
Feb 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: possible deadlock scenario in session want sender (#271)
parent
d7c2ca39
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
internal/session/sessionwantsender.go
internal/session/sessionwantsender.go
+6
-2
No files found.
internal/session/sessionwantsender.go
View file @
a44198e3
...
...
@@ -366,9 +366,13 @@ func (spm *sessionWantSender) processUpdates(updates []update) {
// If any peers have sent us too many consecutive DONT_HAVEs, remove them
// from the session
if
len
(
prunePeers
)
>
0
{
go
func
()
{
for
p
:=
range
prunePeers
{
spm
.
SignalAvailability
(
p
,
false
)
}
}()
}
}
// convenience structs for passing around want-blocks and want-haves for a peer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment