-
Notifications
You must be signed in to change notification settings - Fork 107
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(net): Try harder to drop connections when they shut down, Credit: Ziggurat Team #6832
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
teor2345
added
P-Medium ⚡
C-security
Category: Security issues
I-remote-node-overload
Zebra can overload other nodes on the network
A-network
Area: Network protocol updates or fixes
A-concurrency
Area: Async code, needs extra work to make it work properly.
labels
Jun 6, 2023
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6832 +/- ##
==========================================
- Coverage 77.97% 77.92% -0.05%
==========================================
Files 308 308
Lines 41023 41081 +58
==========================================
+ Hits 31988 32013 +25
- Misses 9035 9068 +33 |
arya2
approved these changes
Jun 6, 2023
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.
Thank you!
dconnolly
added a commit
that referenced
this pull request
Jun 7, 2023
mergify bot
pushed a commit
that referenced
this pull request
Jun 8, 2023
* Bump semvers * Update zebra-utils/README.md * Updated mainnet checkpoints against commit b7029b8 * Add testnet checkpoints from b7029b8 * Bump zebrad rust-version to 1.70 * rust-version 1.68 Co-authored-by: teor <[email protected]> * Add CHANGELOG for 1.0.0-rc.9 * Bump estimated release height to within june 7th 2023 utc-4 * Add #6801 to CHANGELOG in anticipation * Update CHANGELOG.md Co-authored-by: teor <[email protected]> * Update CHANGELOG.md Co-authored-by: teor <[email protected]> * Update CHANGELOG.md Co-authored-by: teor <[email protected]> * Update CHANGELOG.md Co-authored-by: teor <[email protected]> * Update CHANGELOG.md Co-authored-by: teor <[email protected]> * Update breaking changes in 1.0.0-rc.9 changelog * changelog: move #6801 to Fix * Update CHANGELOG.md Co-authored-by: teor <[email protected]> * Include #6832 in the changelog * Add missing changes to changelog * Remove #6801 from known issues in the README * Use the latest bug template link --------- Co-authored-by: teor <[email protected]>
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-concurrency
Area: Async code, needs extra work to make it work properly.
A-network
Area: Network protocol updates or fixes
C-bug
Category: This is a bug
C-security
Category: Security issues
I-remote-node-overload
Zebra can overload other nodes on the network
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog
The Ziggurat team needs to be credited in this PR's changelog entry. This should happen automatically.
Motivation
Some users report that Zebra v1.0.0-rc.8 opens multiple connections to the same node.
Close #6805
Complex Code or Requirements
This is concurrent code, but this PR mainly modifies the shutdown sequence. The task shutdowns could have timing issues, but the other shutdown code is not concurrent.
Solution
Testing
I couldn't reproduce the errors on the latest
main
branch, and I didn't find any bugs that would be easy to test.I added logging so these kinds of issues are easier to detect in future.
Review
This is a routine security fix.
Reviewer Checklist
Follow Up Work
Ask the Ziggurat team to re-test.