From 2a94ce6443096bbae689332dbde13565dba90d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Mon, 23 Sep 2024 15:45:47 +0200 Subject: [PATCH] Bump http-api-client default timeout to 30 sec (#4917) --- common/http-api-client/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/http-api-client/src/lib.rs b/common/http-api-client/src/lib.rs index 7430a8924b..a8ad8e64d1 100644 --- a/common/http-api-client/src/lib.rs +++ b/common/http-api-client/src/lib.rs @@ -18,7 +18,9 @@ pub use user_agent::UserAgent; mod user_agent; -pub const DEFAULT_TIMEOUT: Duration = Duration::from_secs(10); +// The timeout is relatively high as we are often making requests over the mixnet, where latency is +// high and chatty protocols take a while to complete. +pub const DEFAULT_TIMEOUT: Duration = Duration::from_secs(30); pub type PathSegments<'a> = &'a [&'a str]; pub type Params<'a, K, V> = &'a [(K, V)];