From 46f4c0f38ffb181f6e5787997c6153f18ab22902 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Wed, 25 Mar 2026 19:47:59 +0100 Subject: [PATCH] protocol/service: Increase timeout for fetches A timeout of PT3S was empirically found to be too short to allow for the verification of Signed References, given that this verification is now potentially much more costly compared to earlier versions. PT30S should allow fetching reasonably sized histories, even if they are on feature level "root". Note that this is not a timeout for the overall fetch process, but only for inactivity on the channel during an ongoing fetch. --- crates/radicle-protocol/src/service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/radicle-protocol/src/service.rs b/crates/radicle-protocol/src/service.rs index 3fafbed9..5eee6ce8 100644 --- a/crates/radicle-protocol/src/service.rs +++ b/crates/radicle-protocol/src/service.rs @@ -111,8 +111,8 @@ pub const MIN_RECONNECTION_DELTA: LocalDuration = LocalDuration::from_secs(3); pub const MAX_RECONNECTION_DELTA: LocalDuration = LocalDuration::from_mins(60); /// Connection retry delta used for ephemeral peers that failed to connect previously. pub const CONNECTION_RETRY_DELTA: LocalDuration = LocalDuration::from_mins(10); -/// How long to wait for a fetch to stall before aborting, default is 3s. -pub const FETCH_TIMEOUT: time::Duration = time::Duration::from_secs(3); +/// How long to wait for a fetch to stall before aborting, default is 30s. +pub const FETCH_TIMEOUT: time::Duration = time::Duration::from_secs(30); /// Target number of peers to maintain connections to. pub const TARGET_OUTBOUND_PEERS: usize = 8;