Skip to content

fix: Fix download_file single-request mode not using temp file for String/Pathname destinations#3394

Merged
jterapin merged 4 commits into
version-3from
tm-single-download-fix
Jun 10, 2026
Merged

fix: Fix download_file single-request mode not using temp file for String/Pathname destinations#3394
jterapin merged 4 commits into
version-3from
tm-single-download-fix

Conversation

@jterapin

@jterapin jterapin commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Addresses #3391

Fixes FileDownloader#single_request to write to a temporary file before atomically renaming to the destination, matching the behavior of all other download paths (multipart, range).

Previously, single_request passed the destination directly as response_target, so the file could be observed in a partially written state by concurrent readers.

@jterapin jterapin requested a review from a team as a code owner June 9, 2026 15:18
@jterapin jterapin merged commit 20c658a into version-3 Jun 10, 2026
34 checks passed
@jterapin jterapin deleted the tm-single-download-fix branch June 10, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants