Repository navigation
Passed cancellationToken might be default. - #37441
Merged
Merged
Conversation
|
Tagging subscribers to this area: @dotnet/ncl |
Member
Author
|
/azp run runtime-libraries outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
BTW, does the test still make sense if we're bypassing the passed in cancellationToken? |
Member
The test is named "PostAsync_Cancel_CancellationTokenPassedToContent"... if the cancellation token isn't passed to the content with WinHttpHandler, then we probably should just skip the test on WinHttpHandler ;) |
This was referenced Jun 5, 2020
ManickaP
force-pushed
the
mapichov/36689_default_ct
branch
from
June 5, 2020 08:41
67ce02e to
85cdfdb
Compare
Member
Author
|
/azp run runtime-libraries outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
Test skipped on |
stephentoub
approved these changes
Jun 5, 2020
ManickaP
added a commit
to ManickaP/runtime
that referenced
this pull request
Jun 5, 2020
This was referenced Jun 5, 2020
Closed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
In cases like WinHttpHandler (which is also build against .NET Framework), there is no way how to properly pass cancellationToken to content's
CopyToAsync. The overloads accepting it are recent addition and not part of .NET Standard.The tests were deadlocking waiting for
cts.Taskwhich is supposed to be finished fromcancellationToken.Register(...)on the token that is not bound to test'sTaskCompletionSource.Fixes #36689
cc: @stephentoub