-
Notifications
You must be signed in to change notification settings - Fork 1.1k
core/: Concurrent connection attempts #2248
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
Merged
Changes from 73 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
75292bb
*: Implement concurrent dialing
mxinden 10d941b
core/: Track pending connection via Endpoint
mxinden f01b323
core/: Add PendingPoint
mxinden d6da039
swarm/src/lib: Adjust
mxinden 5887d69
*: Associate Multiaddr with transport error
mxinden 08c196f
protocols: Update
mxinden 6c1ce85
core/src/: Remove printlns
mxinden 9070bd2
misc/metrics: Update
mxinden 4043970
core/: Remove printlns
mxinden d594208
core/src/network/concurrent: Catch address error
mxinden bdfd5d1
Merge branch 'libp2p/master' into concurrent-dial
mxinden a705bb0
core/src/connection: Remove meta file
mxinden 436b876
Merge branch 'libp2p/master' into concurrent-dial
mxinden db3fba7
Merge branch 'master' into concurrent-dial
mxinden 63c4a32
core/: Stage connection task in pending and established
mxinden eb86b41
core/src/connection: Send pending result through events channel
mxinden ae21f9e
core/src/connection: Handle connection error
mxinden 7d3114b
core/src/connection: Use oneshot Void for pending connection
mxinden c43496d
core/src/connection: Remove task
mxinden e06131c
core/: Bubble dial errors on success up
mxinden 7c6a0fe
*: Pass dial success errors to behaviours
mxinden 752bb70
core/src/network/concurrent_dial: Limit concurrency factor
mxinden 0dcd1cf
core/src/network/concurrent_dial: Remove bound on Debug
mxinden 2392249
core/src/connection: Remove task module
mxinden b27c735
core/src/connection: Revive Pool::disconnect
mxinden 1703d40
core/src/connection: Fold manager into pool
mxinden 794ca73
core/src/connection: Use different channel for pending and established
mxinden 036c433
core/: Fix lints
mxinden 6eda209
*: Adjust to changes in core
mxinden 999b481
core/src/connection/pool: Take care of events before triggering more
mxinden 9994a90
core/src/connection: Document PendingPoint
mxinden 8eb278d
core/src/connection: Wrap listener error in task.rs not network.rs
mxinden 73ffc76
core/src/connection/pool: Clean up trait bounds
mxinden 1a97d9b
core/src/connection: Move ConnectionId to connection.rs
mxinden f5d0e91
protocols/rendezvous/tests: Await events sequentially to prevent race
mxinden 62ed126
swarm/src/lib: Return dial errors in SwarmEvent::EstablishedConnection
mxinden 42ef7f5
core/src/network: Lazily call Transport dial on concurrent dialing
mxinden 520c4ec
core/src: Move ConcurrentDial into pool/
mxinden f76cf2b
core/src/connection: Only bound poll to TMuxer
mxinden 0ba84ab
core/src/connection: Split PendingConnectionError
mxinden 30401cb
core/src/network: Remove Network::dialing
mxinden 2147b07
core/src/network/peer: Remove DialingAttempt::address
mxinden c1491aa
*: Adjust to changes in libp2p-core
mxinden 77e36e9
core/src/connection: Log muxer closing error
mxinden a80fe6c
core/src/connection: Return handler on incoming connection limit
mxinden 095e081
swarm/: Return handler on dial failure to unknown peer
mxinden b621ff0
Merge branch 'libp2p/master' into concurrent-dial
mxinden 2c24542
*: Address minor TODOs
mxinden 07ed888
swarm/src/behaviour: Fix doc example
mxinden dd49cfc
core/src/connection: Address clippy suggestions
mxinden a725fbf
swarm/src/lib: Fix doc comment
mxinden 386f231
Merge branch 'libp2p/master' into concurrent-dial
mxinden 66cb2be
*: Minor rewording on doc comments
mxinden 4dba4c8
core/tests: Use MemoryTransport
mxinden dc3c46d
protocols/rendezvous: Implement assert_behaviour_events for single swarm
mxinden 559bb31
core/src/connection: Move dial concurrency factor to constant
mxinden 8547941
*: Add changelog entries
mxinden 3aca8d0
{core,swarm}/: Make concurrent dialing configurable
mxinden ef36c5e
core/tests/: Test concurrent dialing
mxinden 0fea620
core/src/connection: Revert Stream impl for Connection
mxinden d25c95b
core/: Replace "Stack of protocols" with "Address"
mxinden ecdb812
core/src/connection: Fix doc comment on to_pending_point
mxinden 2a6dc54
core/src/connection: Rename trait bound TransportError to TTransErr
mxinden e7beec4
core/src/connection/pool: Impl start_close on EstablishedConnInfo
mxinden 34daf90
core/src/network: Fix trait bounds on DialingOpts
mxinden d099106
core/src/network/peer: Fix doc comment on DialingAttempt
mxinden d5e06b6
core/src/network/peer: Remove outdated comment on DialingAttempt::abort
mxinden 7331d90
{core,swarm}/: Rename outgoing to concurrent_dial_errors
mxinden 9fc5870
core/src/connection/pool: Implement expect_occupied for hash_map::Entry
mxinden e840d65
Merge branch 'libp2p/master' into concurrent-dial
mxinden c35992a
Merge branch 'master' into concurrent-dial
mxinden cb553cf
{core,swarm}/CHANGELOG: Update now that concurrency is configurable
mxinden 04c694f
protocols/src/identify: Update to changed address failure reporting
mxinden 7aafc52
core/CHANGELOG.md: Fix typo
mxinden 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.