Skip to content

Commit

Permalink
Merge pull request #2568 from RolandSherwin/circuit_timeout
Browse files Browse the repository at this point in the history
fix: use smaller timeouts for circuit relay connections
  • Loading branch information
jacderida authored Dec 23, 2024
2 parents 8fab9c2 + 1c1988c commit f640b7f
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 f640b7f

Please sign in to comment.