fix(metadata): cap OpenSubtitles bodies, evict metadata cache, bound komide fetch - #568
Merged
Conversation
…komide fetch - prostheke/opensubtitles: route the /subtitles search and /download-link JSON reads through the existing byte-capped read_body_capped helper (deserializing via serde_json::from_slice) instead of the unbounded response.json(), matching the sibling subtitle-content fetch a few lines below. - epignosis: spawn a periodic background sweeper (Weak-held, so it exits once the resolver's Arc<MetadataCache> is dropped) that calls evict_expired() on the resolver's identity cache every cache_ttl_secs — previously eviction only happened lazily on a get() for the same key, so a long-running server importing a large library grew the DashMap unbounded. - komide: build the feed-fetch reqwest::Client in archon's serve path with .timeout(fetch_timeout_secs) instead of Client::new(), so the already-configured-but-unwired timeout actually bounds a stalled feed host (which could otherwise block response.chunk().await forever and wedge that feed's poll task). Gate-Passed: kanon 0.1.5 +stages:fmt,check,clippy,nextest,lint sha:768a4ffdf19ceeee2b73738e0ff555a8bdf0e6d6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #524
Closes #548
Closes #549