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 1, 2022
1 parent 7190952 commit 0d0dcbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions swarm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@

- Extend log message when exceeding inbound negotiating streams with peer ID and limit. See [PR 2716].

- Update dial address concurrency factor to `8` via `Swarm::dial_concurrency_factor`. See [PR 2780].

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

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

- Limit negotiating inbound substreams per connection. See [PR 2697].
Expand Down
2 changes: 1 addition & 1 deletion swarm/src/connection/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ impl Default for PoolConfig {
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"),
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 0d0dcbd

Please sign in to comment.