From a1b335c42613ed61397893f4aac4d2b21f00f07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 8 Sep 2026 03:07:03 +0300 Subject: [PATCH] =?UTF-8?q?every=20issuer=20call=20carries=20a=20ceiling:?= =?UTF-8?q?=20the=20shared=20client=20asked=20im=20with=20no=20timeout,=20?= =?UTF-8?q?so=20a=20provider=20that=20stalls=20=E2=80=94=20mid-deploy,=20h?= =?UTF-8?q?alf-open=20socket=20=E2=80=94=20parked=20the=20caller=20forever?= =?UTF-8?q?,=20and=20a=20parked=20mirror=20beat=20never=20asked=20again;?= =?UTF-8?q?=20ten=20seconds=20now=20bound=20introspection,=20the=20family?= =?UTF-8?q?=20and=20directory=20mirrors=20and=20the=20photo=20fetches=20al?= =?UTF-8?q?ike,=20so=20a=20stalled=20im=20costs=20one=20failed=20beat=20or?= =?UTF-8?q?=20one=20bounced=20render=20instead=20of=20a=20frozen=20task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/in-client/src/lib.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/in-client/src/lib.rs b/crates/in-client/src/lib.rs index 4679917..4a28b32 100644 --- a/crates/in-client/src/lib.rs +++ b/crates/in-client/src/lib.rs @@ -89,7 +89,15 @@ impl InClient { pub fn new(config: Config) -> Self { InClient { config, - http: reqwest::Client::new(), + // Every issuer call — introspection on the render path, the + // family and directory mirrors on their beat — carries a + // ceiling: a provider that stalls (mid-deploy, half-open + // socket) otherwise parks the caller forever, and a parked + // mirror task never asks again. + http: reqwest::Client::builder() + .timeout(std::time::Duration::from_secs(10)) + .build() + .expect("reqwest client with a timeout"), jwks: tokio::sync::RwLock::new(None), } }