Skip to content

Commit

Permalink
feat(networking): restrict max_circuits value
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee committed Jul 19, 2024
1 parent aff65e4 commit 047fcd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sn_networking/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ impl NetworkBuilder {
let relay_server = {
let relay_server_cfg = relay::Config {
max_reservations: 128, // Amount of peers we are relaying for
max_circuits: 4096, // The total amount of relayed connections at any given moment.
max_circuits: 1024, // The total amount of relayed connections at any given moment.
max_circuits_per_peer: 256, // Amount of relayed connections per peer (both dst and src)
circuit_src_rate_limiters: vec![], // No extra rate limiting for now
..Default::default()
Expand Down

0 comments on commit 047fcd8

Please sign in to comment.