Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Advisories against rustls-webpki 0.101.7, pulled in transitively by
# aws-sdk-s3-transfer-manager through the legacy rustls 0.21 chain used by
# dial9's worker-s3 feature. No patch exists in 0.101.x; not reachable in
# our usage because this is TLS client use only and does not parse CRLs.
# Remove once the upstream aws-s3-transfer-manager-rs fix ships.
# Advisories against rustls-webpki 0.101.7 and h2 0.3.x, pulled in transitively
# by aws-sdk-s3-transfer-manager through the legacy hyper 0.14 / rustls 0.21
# chain used by dial9's worker-s3 feature. No patches exist in those release
# lines; not reachable in our usage because this is TLS client use only against
# trusted AWS endpoints, does not parse CRLs, and is not exposed to untrusted
# HTTP/2 peers. Remove once the upstream aws-s3-transfer-manager-rs fix ships.

[advisories]
ignore = [
"RUSTSEC-2026-0098", # rustls-webpki: URI name constraints incorrectly accepted
"RUSTSEC-2026-0099", # rustls-webpki: name constraints accepted for wildcard certs
"RUSTSEC-2026-0104", # rustls-webpki: reachable panic in CRL parsing
"RUSTSEC-2026-0258", # h2 0.3: unbounded empty DATA frames
]
7 changes: 7 additions & 0 deletions pingora-memory-cache/src/read_through.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ where
}
}
None => {
/* recheck the cache before becoming the writer: another lookup may have
* populated it and removed its lock between our initial miss and
* acquiring this write lock */
let (result, _) = self.inner.get(key);
if let Some(result) = result {
return (Ok(result), CacheStatus::LockHit);
}
let new_lock = CacheLock::new_arc();
let new_lock2 = new_lock.clone();
lockers.insert(hashed_key, new_lock2);
Expand Down
Loading