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; 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

a1b335c42613ed61397893f4aac4d2b21f00f07aAhmet Kaan GümüşParent: 4e3e550
crates/in-client/src/lib.rsmodified+9 -1
@@ -89,7 +89,15 @@ impl InClient {
89 pub fn new(config: Config) -> Self {89 pub fn new(config: Config) -> Self {
90 InClient {90 InClient {
91 config,91 config,
92- http: reqwest::Client::new(),92+ // Every issuer call — introspection on the render path, the
93+ // family and directory mirrors on their beat — carries a
94+ // ceiling: a provider that stalls (mid-deploy, half-open
95+ // socket) otherwise parks the caller forever, and a parked
96+ // mirror task never asks again.
97+ http: reqwest::Client::builder()
98+ .timeout(std::time::Duration::from_secs(10))
99+ .build()
100+ .expect("reqwest client with a timeout"),
93 jwks: tokio::sync::RwLock::new(None),101 jwks: tokio::sync::RwLock::new(None),
94 }102 }
95 }103 }