-
Notifications
You must be signed in to change notification settings - Fork 899
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(share/discovery): deadlock in limitedSet #2190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the reason for the ps.limit > 0
check inside of Remove anyway?
Because there is no reason to grow set indefinitely when limits is zero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to release asap
Eh weird @Wondertan - if discovery short-circuits bc peerslimit is 0, then Remove wouldn't even get called. Anyway, approved |
Yeah and there is no need to have that if, if that case is impossible |
The deadlock eventually blocks the disconnect event processing in Discovery, causing libp2p connection processing to stall. It was discovered via libp2p metrics
Self-explanatory.
The deadlock eventually blocks the disconnect event processing in Discovery, causing libp2p connection processing to stall. Was discovered via libp2p metrics