Skip to content

Commit

Permalink
swarm/src/connection: update dial concurrency factor default value to…
Browse files Browse the repository at this point in the history
… > 8 (#2678)
  • Loading branch information
maschad committed Jul 4, 2022
1 parent 62622a1 commit 4efd77e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion swarm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

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

- 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].

[PR 2716]: https://github.com/libp2p/rust-libp2p/pull/2716/
[PR 2652]: https://github.com/libp2p/rust-libp2p/pull/2652

[PR 2741]: https://github.com/libp2p/rust-libp2p/pull/2741/
# 0.36.1

- Limit negotiating inbound substreams per connection. See [PR 2697].
Expand Down
4 changes: 2 additions & 2 deletions swarm/src/connection/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1175,8 +1175,8 @@ impl Default for PoolConfig {
executor: None,
task_event_buffer_size: 32,
task_command_buffer_size: 7,
// By default, addresses of a single connection attempt are dialed in sequence.
dial_concurrency_factor: NonZeroU8::new(1).expect("1 > 0"),
// Set to a default of 8 based on frequency of dialer connections
dial_concurrency_factor: NonZeroU8::new(8).expect("8 > 0"),
substream_upgrade_protocol_override: None,
max_negotiating_inbound_streams: 128,
}
Expand Down

0 comments on commit 4efd77e

Please sign in to comment.