forge
Explore
Log in

Don't you dare go Hollow

every issuer call carries a ceiling: the shared client asked im with no timeout, so a provider that stalls — mid-deploy, half-open socket — parked the caller forever, and a parked mirror beat never asked again; this exact freeze cost iz its switcher in production once, the beat landing inside im's deploy restart with the journal silent ever after. Ten seconds now bound introspection, the family and directory mirrors and the photo fetches alike, so a stalled im costs one failed beat or one bounced render instead of a frozen task

Browse files at this commit

03a5482ff7fabbc59cc31cacd54864bfa85f8fa0Ahmet Kaan GümüşParent: ec39aa3
crates/iz-client/src/lib.rsmodified+10 -1
@@ -99,7 +99,16 @@ impl IzClient {
99 pub fn new(config: Config) -> Self {99 pub fn new(config: Config) -> Self {
100 IzClient {100 IzClient {
101 config,101 config,
102- http: reqwest::Client::new(),102+ // Every issuer call — introspection on the render path, the
103+ // family and directory mirrors on their beat — carries a
104+ // ceiling: a provider that stalls (mid-deploy, half-open
105+ // socket) otherwise parks the caller forever, and a parked
106+ // mirror task never asks again. This exact freeze cost iz its
107+ // switcher once, the beat landing inside im's deploy restart.
108+ http: reqwest::Client::builder()
109+ .timeout(std::time::Duration::from_secs(10))
110+ .build()
111+ .expect("reqwest client with a timeout"),
103 jwks: tokio::sync::RwLock::new(None),112 jwks: tokio::sync::RwLock::new(None),
104 }113 }
105 }114 }