You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gateway: one gateway-wide manifest_fill lock serializes every uncached site behind the slowest manifest pull #2848
Source: security review at b5e29ae (2026-11-05). Each claim below was re-read on disk by independent verifiers.
manifest() takes self.manifest_fill.lock().await (crates/cli/src/commands/gateway.rs:2291; field at :928) and holds it across the whole pull_manifest. The lock is gateway-wide, not per hash.
A pull for a hash nobody holds runs discovery until it faults, and a slow holder can keep the lock until the 120 s give-up per silent gap. Meanwhile every request for any other uncached bundle waits. Cache hits return before the lock, so only new or evicted sites are affected.
Key the fill lock per hash (Mutex<HashMap<[u8; 32], Arc<tokio::sync::Mutex<()>>>>), and drop the entry when the pull ends
Test: a stalled manifest pull for one hash does not delay another hash's manifest
Activity