-
Notifications
You must be signed in to change notification settings - Fork 106
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): Reduce inbound service overloads and add a timeout #6950
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
C-bug
Category: This is a bug
P-High 🔥
C-security
Category: Security issues
I-slow
Problems with performance or responsiveness
A-network
Area: Network protocol updates or fixes
A-concurrency
Area: Async code, needs extra work to make it work properly.
labels
Jun 14, 2023
teor2345
commented
Jun 14, 2023
teor2345
changed the title
fix(net): Reduce inbound service overloads
fix(net): Reduce inbound service overloads and add a timeout
Jun 14, 2023
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6950 +/- ##
==========================================
- Coverage 77.65% 77.61% -0.04%
==========================================
Files 310 310
Lines 41475 41488 +13
==========================================
- Hits 32207 32202 -5
- Misses 9268 9286 +18 |
arya2
approved these changes
Jun 14, 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.
This looks good, thank you.
I suspect you were right about the blocks being out of order, increasing MAX_INBOUND_CONCURRENCY
should help.
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-slow
Problems with performance or responsiveness
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.
Motivation
Sometimes Zebra's inbound service gets overloaded and drops a whole lot of connections at the same time.
Close #6911
Complex Code or Requirements
This is concurrent code.
Solution
Timeouts:
Overloads:
Related changes:
Review
This is an important security fix, it should go in early in the next release.
Reviewer Checklist
Follow Up Work
Work out which requests are slow (or numerous), and make them faster. This PR adds logging for inbound request timeouts.