Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: fix Downloader to dispose tempFile and use synchronous IO#81

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
spikecurtis merged 2 commits intomainfromspike/internal-598-temp-dir
Apr 30, 2025

Conversation

spikecurtis
Copy link
Collaborator

@spikecurtisspikecurtis commentedApr 29, 2025
edited
Loading

Fixescoder/internal#598

There is a possible race where if the cancellation token is expired,Download() never gets called and the tempFile is never disposed of (at least until GC). We also switch to synchronous IO so that a pending overlapped write won't block the deletion.

These issues can cause races in our tests when we try to clean up the directory.

@spikecurtisGraphite App
Copy link
CollaboratorAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@spikecurtisspikecurtisforce-pushed thespike/internal-598-temp-dir branch fromee4540b to08002efCompareApril 29, 2025 12:18
@spikecurtisspikecurtis marked this pull request as ready for reviewApril 29, 2025 12:22
@spikecurtisGraphite App
Copy link
CollaboratorAuthor

Hmm. Still getting the error, so clearly the issue I noticed must not be the (only) cause.

@spikecurtisspikecurtis changed the titletest: fix DownloaderTest to retry tempdir cleanupfix: fix Downloader to dispose tempFile and use synchronous IOApr 30, 2025
@spikecurtisspikecurtis merged commite5d9dc1 intomainApr 30, 2025
4 checks passed
@spikecurtisspikecurtis deleted the spike/internal-598-temp-dir branchApril 30, 2025 11:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

flake: DownloaderTest/CancelledInner coder-desktop-windows
2 participants
@spikecurtis@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp