-
Notifications
You must be signed in to change notification settings - Fork 443
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
[feature request]: Low-Level Connection Management #175
Comments
This is similar to a comment I made in another thread recently, Its not clear to me why webrtc can't deny connections above a certain number which would ideally solve the crashing problem in browsers. |
@kumavis that's great feedback, thanks! |
@kumavis if you have some spare cycles, test out the connection manager already released in libp2p 0.22 and that will also get released in js-ipfs 0.30 ipfs/js-ipfs#1375 |
We are aiming to slot connection gating into the 0.30 release. |
Port of https://github.com/libp2p/go-libp2p-core/blob/master/connmgr/gater.go Adds a new configuration key `connectionGater` which allows denying the dialing of certain peers, individual multiaddrs and the creation of connections at certain points in the connection flow. Fixes: #175 Refs: #744 Refs: #769 Co-authored-by: mzdws <[email protected]>
* deps(dev): bump aegir from 38.1.8 to 39.0.5 Bumps [aegir](https://github.com/ipfs/aegir) from 38.1.8 to 39.0.5. - [Release notes](https://github.com/ipfs/aegir/releases) - [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md) - [Commits](ipfs/aegir@v38.1.8...v39.0.5) --- updated-dependencies: - dependency-name: aegir dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * chore: fix linting --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: achingbrain <[email protected]>
## [7.0.1](libp2p/js-libp2p-bootstrap@v7.0.0...v7.0.1) (2023-05-04) ### Dependencies * **dev:** bump aegir from 38.1.8 to 39.0.5 ([libp2p#175](libp2p/js-libp2p-bootstrap#175)) ([e8d7ed7](libp2p/js-libp2p-bootstrap@e8d7ed7))
## [2.0.8](libp2p/js-libp2p-webrtc@v2.0.7...v2.0.8) (2023-06-12) ### Tests * add a test for large transfers ([libp2p#175](libp2p/js-libp2p-webrtc#175)) ([0f60060](libp2p/js-libp2p-webrtc@0f60060))
## [3.0.5](libp2p/js-libp2p-floodsub@v3.0.4...v3.0.5) (2022-08-11) ### Dependencies * update protons to 5.1.0 ([#175](libp2p/js-libp2p-floodsub#175)) ([c41d1fa](libp2p/js-libp2p-floodsub@c41d1fa))
idea:
some additional controls over establishing/denying connections
usecase:
MetaMask is building an Ethereum light client for the browser using libp2p.
We intend to use webrtc which is resource intensive and can only safely support 2-5 active connections.
We need to be able to deny incoming webrtc connection attempts after some threshold.
The text was updated successfully, but these errors were encountered: