-
Notifications
You must be signed in to change notification settings - Fork 448
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
feat: Update connectionManager
to allow configuration of incoming and outgoing connection limits
#1511
Closed
maschad
wants to merge
18
commits into
libp2p:master
from
maschad:feat/seperate-limits-for-connections
Closed
feat: Update connectionManager
to allow configuration of incoming and outgoing connection limits
#1511
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
836a5af
doc: Updated docs to seperate max/min incoming and outgoing connectio…
maschad b8bb367
test: updated tests to check for max/min incoming and outgoing connec…
maschad d2cad14
feat: Added the configuration capabilities on connection manager to s…
maschad fd41aa2
test: throws an error for outbound connection beyond limit and added …
maschad 9344798
fix: should not prune a peer that is in the allow list once the conne…
maschad 1899064
docs: update connection manager docs (#1555)
maschad 78c9bbb
chore: update dependanbot config (#1558)
achingbrain 6188a51
chore: remove unused rimraf dep (#1559)
achingbrain cb245ce
fix: allow reading PeerId from keychain (#1552)
achingbrain 07352f6
fix: allow configuring circuit stream limits (#1542)
mpetrunic 5a5330e
chore: release 0.42.2 (#1551)
github-actions[bot] b534c8b
fixup! doc: Updated docs to seperate max/min incoming and outgoing co…
maschad e2810db
fixup! feat: Added the configuration capabilities on connection manag…
maschad 5b2c1f0
doc: Updated docs to seperate max/min incoming and outgoing connectio…
maschad 3f20c93
Merge branch 'master' into feat/seperate-limits-for-connections
maschad 9e75969
fix: updated connection limits to filter for inbound/outbound (#1511)
maschad c8ebca5
test: updated test for outbound connection limits (#1508)
maschad 1fcbca1
Merge branch 'master' into feat/seperate-limits-for-connections
maschad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
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.
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 effectively doubles the number of allowed connections, I'm not sure if that's a good idea. I know this is what #1508 asks for but maybe it needs more thought.
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.
There are valid use cases for expecting mostly incoming connections, it may be a better approach to just always ensure we can make outgoing connections to prevent eclipse attacks?
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.
If a consumer has a set of trusted peers and IP addresses, we can actually always have outgoing connections to these trusted peers by adding them to the
AllowList
(which #1515 consolidates by ensuring they are never pruned), so that should mitigate against eclipse attacks. I know that go-lip2p's resource manager is configured with limits on the number of outgoing and incoming connections