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

[Merged by Bors] - Mitigate too many outgoing connections #1469

Conversation

divagant-martian
Copy link
Collaborator

limit simultaneous outgoing connections attempts to a reasonable top as an extra layer of protection
also shift the keep alive logic of the rpc handler to avoid needing to update it by hand. I think In rare cases this could make shutting down a connection a bit faster.

@AgeManning
Copy link
Member

I think this is a good idea. Is this still a draft?

@divagant-martian divagant-martian force-pushed the mitigate-too-many-outgoing-connections branch from 3107475 to 1197722 Compare August 11, 2020 00:47
@divagant-martian
Copy link
Collaborator Author

I'll move it to be ready, (updated against master)
I'll look into dialing peers.. I think most of the time we are not asking the peer manager, that could help too

@divagant-martian divagant-martian marked this pull request as ready for review August 11, 2020 00:50
Copy link
Member

@AgeManning AgeManning left a comment

Choose a reason for hiding this comment

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

Yep, much cleaner.

I agree we probably shouldn't have more than 2*peer limit outgoing connections

@AgeManning
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Aug 11, 2020
limit simultaneous outgoing connections attempts to a reasonable top as an extra layer of protection
also shift the keep alive logic of the rpc handler to avoid needing to update it by hand. I think In rare cases this could make shutting down a connection a bit faster.
@bors bors bot changed the title Mitigate too many outgoing connections [Merged by Bors] - Mitigate too many outgoing connections Aug 11, 2020
@bors bors bot closed this Aug 11, 2020
paulhauner pushed a commit that referenced this pull request Aug 12, 2020
limit simultaneous outgoing connections attempts to a reasonable top as an extra layer of protection
also shift the keep alive logic of the rpc handler to avoid needing to update it by hand. I think In rare cases this could make shutting down a connection a bit faster.
@divagant-martian divagant-martian deleted the mitigate-too-many-outgoing-connections branch January 4, 2021 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants