forked from libp2p/rust-libp2p
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/: Merge pending and established connection limits
Merge pending and established limits for both incoming and outgoing connections. More specifically merge `ConnectionLimits::with_max_pending_incoming` with `ConnectionLimits::with_max_established_incoming` and `ConnectionLimits::with_max_pending_outgoing` with `ConnectionLimits::with_max_established_outgoing`. Connection limits are checked on `Network::dial` for outgoing and on `Network::accept` for incoming connections. This (a) simplifies connection limits from an implementations and user perspective and (b) simplifies returning a connection handler on limit error as limits can only be exceeded at the start of dialing and accepting. See [1]. [1]: libp2p#2242 (comment)
- Loading branch information
Showing
10 changed files
with
117 additions
and
215 deletions.
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
Oops, something went wrong.