From def747b3a3da4a8592162860c2cf2985ce8ecfb1 Mon Sep 17 00:00:00 2001 From: Alex Kladov Date: Wed, 5 Jun 2024 11:02:29 +0100 Subject: [PATCH] Bump default timeouts Although in the steady state 10 second timeout is reasonable, in practice p100 was observed to be much higher than that (if, for example, the machine you are supposed to talk to needs to cold boot). Given that just _one_ timeout terminates the entire process, it feels like we can benefit from being quiet a bit more conservative here for the time being. --- crates/brioche-core/src/registry.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/brioche-core/src/registry.rs b/crates/brioche-core/src/registry.rs index af3e69e..062d201 100644 --- a/crates/brioche-core/src/registry.rs +++ b/crates/brioche-core/src/registry.rs @@ -15,9 +15,9 @@ use crate::{ Brioche, }; -const GET_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(10); -const CONNECT_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(10); -const READ_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(10); +const GET_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(120); +const CONNECT_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(120); +const READ_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(120); #[derive(Clone)] pub enum RegistryClient {