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), } }