Skip to content

Commit

Permalink
fix: use smaller timeouts for circuit relay connections
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin committed Dec 23, 2024
1 parent f55680c commit 1c1988c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ant-networking/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ impl NetworkBuilder {
circuit_src_rate_limiters: vec![], // No extra rate limiting for now
// We should at least be able to relay packets with chunks etc.
max_circuit_bytes: MAX_PACKET_SIZE as u64,
max_circuit_duration: CONNECTION_KEEP_ALIVE_TIMEOUT,
..Default::default()
};
libp2p::relay::Behaviour::new(peer_id, relay_server_cfg)
Expand Down

0 comments on commit 1c1988c

Please sign in to comment.