Skip to content

Pass cancellation token to each of the file download/save operations#11870

Merged
mmitche merged 1 commit intodotnet:mainfrom
mmitche:cancellation-token-source
Dec 7, 2022
Merged

Pass cancellation token to each of the file download/save operations#11870
mmitche merged 1 commit intodotnet:mainfrom
mmitche:cancellation-token-source

Conversation

@mmitche
Copy link
Copy Markdown
Member

@mmitche mmitche commented Dec 7, 2022

Because the GetAsync call returns after the headers are read, the time based cancellation token isn't currently covering the file download (or save, for that matter). So it's possible that if there is an issue downloading the file content, we're not timing out and hitting the normal retry loop.

To double check:

Because the GetAsync call returns after the headers are read, the time based cancellation token isn't currently covering the file download (or save, for that matter). So it's possible that if there is an issue downloading the file content, we're not timing out and hitting the normal retry loop.
@mmitche mmitche enabled auto-merge (squash) December 7, 2022 20:36
@mmitche mmitche merged commit 16ececa into dotnet:main Dec 7, 2022
@ghost
Copy link
Copy Markdown

ghost commented Dec 9, 2022

@mmitche #11890 was finally merged and this is now in the publishing pipeline.

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