-
Notifications
You must be signed in to change notification settings - Fork 139
fix(transfer): verify Content-Length and download atomically via .part rename (BE-2513) #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+496
−29
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
43e4322
fix(transfer): verify Content-Length and download atomically via .par…
bigcat88 dae7412
fix(transfer): create download temp files exclusively with random names
bigcat88 7c7dfeb
fix(transfer): emit download_failed envelope on connection and filesy…
bigcat88 dafce2f
fix(transfer): add a socket timeout to output downloads
bigcat88 e641b6a
fix(transfer): abort downloads that exceed the declared Content-Length
bigcat88 2610f30
fix(transfer): enforce the size cap during local-output copies
bigcat88 6e7b791
fix(transfer): stop download temp files leaking fds on error paths
bigcat88 abfdb19
fix(transfer): emit envelope on truncated chunked downloads
bigcat88 3b5a4b5
fix(transfer): consistent size-error key + robust Content-Length parsing
bigcat88 372a86f
test(transfer): drive the download stream loop faithfully
bigcat88 64a822f
test(transfer): skip the fchmod-failure test where os.fchmod is absent
bigcat88 ad89975
Merge branch 'main' into bigcat88/be-2513-download-atomic-verify
mattmillerai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.