From 1c1988cf444ce3a8e35ed3486d80bf4d882af347 Mon Sep 17 00:00:00 2001 From: Roland Sherwin Date: Mon, 23 Dec 2024 18:01:28 +0530 Subject: [PATCH] fix: use smaller timeouts for circuit relay connections --- ant-networking/src/driver.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ant-networking/src/driver.rs b/ant-networking/src/driver.rs index bb1637a099..885298eba4 100644 --- a/ant-networking/src/driver.rs +++ b/ant-networking/src/driver.rs @@ -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)