From 03a5482ff7fabbc59cc31cacd54864bfa85f8fa0 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?=20this=20exact=20freeze=20cost=20iz=20its=20switcher=20in=20pr?= =?UTF-8?q?oduction=20once,=20the=20beat=20landing=20inside=20im's=20deplo?= =?UTF-8?q?y=20restart=20with=20the=20journal=20silent=20ever=20after.=20T?= =?UTF-8?q?en=20seconds=20now=20bound=20introspection,=20the=20family=20an?= =?UTF-8?q?d=20directory=20mirrors=20and=20the=20photo=20fetches=20alike,?= =?UTF-8?q?=20so=20a=20stalled=20im=20costs=20one=20failed=20beat=20or=20o?= =?UTF-8?q?ne=20bounced=20render=20instead=20of=20a=20frozen=20task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/iz-client/src/lib.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/crates/iz-client/src/lib.rs b/crates/iz-client/src/lib.rs index 00e46ba..16ad02d 100644 --- a/crates/iz-client/src/lib.rs +++ b/crates/iz-client/src/lib.rs @@ -99,7 +99,16 @@ impl IzClient { pub fn new(config: Config) -> Self { IzClient { 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. This exact freeze cost iz its + // switcher once, the beat landing inside im's deploy restart. + http: reqwest::Client::builder() + .timeout(std::time::Duration::from_secs(10)) + .build() + .expect("reqwest client with a timeout"), jwks: tokio::sync::RwLock::new(None), } }