Skip to content

Commit 4efd77e

Browse files
committed
swarm/src/connection: update dial concurrency factor default value to > 8 (libp2p#2678)
1 parent 62622a1 commit 4efd77e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

swarm/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
- Remove `connection::ListenersStream` and poll the `Transport` directly. See [PR 2652].
88

9+
- Update dial address concurrency factor to `8`, thus dialing up to 8 addresses concurrently for a single connection attempt. See `Swarm::dial_concurrency_factor` and [PR 2741].
10+
911
[PR 2716]: https://github.com/libp2p/rust-libp2p/pull/2716/
1012
[PR 2652]: https://github.com/libp2p/rust-libp2p/pull/2652
11-
13+
[PR 2741]: https://github.com/libp2p/rust-libp2p/pull/2741/
1214
# 0.36.1
1315

1416
- Limit negotiating inbound substreams per connection. See [PR 2697].

swarm/src/connection/pool.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1175,8 +1175,8 @@ impl Default for PoolConfig {
11751175
executor: None,
11761176
task_event_buffer_size: 32,
11771177
task_command_buffer_size: 7,
1178-
// By default, addresses of a single connection attempt are dialed in sequence.
1179-
dial_concurrency_factor: NonZeroU8::new(1).expect("1 > 0"),
1178+
// Set to a default of 8 based on frequency of dialer connections
1179+
dial_concurrency_factor: NonZeroU8::new(8).expect("8 > 0"),
11801180
substream_upgrade_protocol_override: None,
11811181
max_negotiating_inbound_streams: 128,
11821182
}

0 commit comments

Comments
 (0)