Skip to content

Introduce smart dialing in js-libp2p #2010

Closed
@p-shahi

Description

@p-shahi

Goal

Reduce the number of outbound spurious dials that result in failed connections. This is especially a problem when dialing WebTransport addresses in Chromium where we often hit the 64 session limit #1896

Ref: notes on smart dialing in go-libp2p https://github.com/libp2p/go-libp2p/releases/tag/v0.29.0

### Tasks
- [x] fix(libp2p): only dial one address at a time for peers #2028
- [x] fix(libp2p): sort addresses to dial as public, then relay #2031
- [x] Increase no-redial threshold in browsers to greater than the WebTransport error timeout (fixed in #2028)
- [ ] https://github.com/libp2p/js-libp2p/pull/2033
- [ ] https://github.com/libp2p/js-libp2p/issues/2114
- [ ] https://github.com/libp2p/js-libp2p/issues/2150

Metadata

Metadata

Labels

P0Critical: Tackled by core team ASAPkind/enhancementA net-new feature or improvement to an existing feature

Type

No type

Projects

Status

🎉Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions