Update from task 04764cc6-bc0c-46bd-8f67-0a1c7b09f040#1
Open
glsimon666 wants to merge 5 commits intomainfrom
Open
Update from task 04764cc6-bc0c-46bd-8f67-0a1c7b09f040#1glsimon666 wants to merge 5 commits intomainfrom
glsimon666 wants to merge 5 commits intomainfrom
Conversation
…Logic - Modified `server/common/proxy.go` to set native proxy as default strategy and implement intelligent caching for large ISO files (>10GB) - Added `handleLargeIsoFile` function to manage caching of first 32MB and last 5MB of large ISO files before serving requests - Introduced `cacheIsoFileParts` to asynchronously download and cache critical file segments - Implemented `IsoFileReader` with range-aware logic to serve cached data directly when available, otherwise fallback to remote source - Added `IsoCacheState` and `sync.Map` to track and coordinate caching state across concurrent requests - Enhanced `Proxy` function to detect large ISO files and route them through the new caching pipeline The changes enable efficient handling of large ISO files by pre-caching critical portions, reducing latency for common access patterns while maintaining compatibility with existing proxy workflows. The implementation ensures thread-safe caching and seamless integration into the current streaming infrastructure.
|
如果跨多个组件,请使用主要组件作为前缀,并在标题中枚举、描述中说明。 |
Signed-off-by: glsimon666 <ambu.tr@gmail.com>
Signed-off-by: glsimon666 <ambu.tr@gmail.com>
Signed-off-by: glsimon666 <ambu.tr@gmail.com>
Signed-off-by: glsimon666 <ambu.tr@gmail.com>
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.
This PR was created by qwen-chat coder for task 04764cc6-bc0c-46bd-8f67-0a1c7b09f040.