Skip to content
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: restrict concurrent incoming connections #12150

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Oct 28, 2024

we didn't properly check how many pending incoming connections are already in progress.

this adds an additional check for this.

there's an edge where no incoming connections from untrusted peers are allowed, so we need to check this differently.

@mattsse mattsse added C-bug An unexpected or incorrect behavior A-networking Related to networking in general labels Oct 28, 2024
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

@mattsse mattsse added this pull request to the merge queue Oct 28, 2024
Merged via the queue into main with commit 05ee75f Oct 28, 2024
41 checks passed
@mattsse mattsse deleted the matt/limit-pending-inc branch October 28, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants