-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix crash in Slot::deletePeer
#5635
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5635 +/- ##
=======================================
Coverage 78.8% 78.8%
=======================================
Files 814 814
Lines 71261 71270 +9
Branches 8368 8349 -19
=======================================
+ Hits 56131 56159 +28
+ Misses 15130 15111 -19
🚀 New features to boost your workflow:
|
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.
LGTM
merge comment - please ignore |
Fix crash due to recurrent call to `Slot::deletePeer` (via `OverlayImpl::unsquelch`) when a peer is disconnected at just the wrong moment.
Fix crash due to recurrent call to `Slot::deletePeer` (via `OverlayImpl::unsquelch`) when a peer is disconnected at just the wrong moment.
High Level Overview of Change
Fix crash due to recurrent call to
Slot::deletePeer
(viaOverlayImpl::unsquelch
) when a peer is disconnected at just the wrong moment.Context of Change
Similar to #5071
This fixes race condition and UB, I do not think it is possible to write unit tests for this fix. Not with the overall poor coverage we have for
PeerImp
, but unlikely even if we had much better coverage.Type of Change
.gitignore
, formatting, dropping support for older tooling)