-
Notifications
You must be signed in to change notification settings - Fork 522
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
[Foundation] Separate the cancellation tokens from the current inflight data. fixes #11799 #15678
base: d17-3
Are you sure you want to change the base?
[Foundation] Separate the cancellation tokens from the current inflight data. fixes #11799 #15678
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
inflight.ResponseSent = true; | ||
|
||
// EVIL HACK: having TrySetResult inline was blocking the request from completing | ||
Task.Run (() => inflight.CompletionSource.TrySetResult (httpResponse!)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad we got rid of this additional thread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me so far 👍
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
🔥 [PR Build] Build failed 🔥Build failed for the job 'Build packages' Pipeline on Agent |
🔥 Failed to compare API and create generator diff 🔥 Error: 'make' failed for the hash 66642b7. Pipeline on Agent |
For anyone watching this PR see the note here I made on needing validation and/or a sample project for this PR to move forward. |
/sudo backport xcode14.2 |
Backport Job to branch xcode14.2 Created! The magic is happening here |
Hooray! Backport succeeded! Please see https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=7121026 for more details. |
/sudo backport d17-2 |
Backport Job to branch d17-2 Created! The magic is happening here |
Hooray! Backport succeeded! Please see https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=7180507 for more details. |
/sudo backport xcode14.3 |
Backport Job to branch xcode14.3 Created! The magic is happening here |
Oh no! Backport failed! Please see https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=7985050 for more details. |
The following is a refactor of the way we do manage the cancelation of the rest of the inflight data, this new implementation tries to avoid the situation in which the runtime is not correctly giving us an inflight data wit a cancelation token.
This is an attempt to fix issue 11799 by ensuring that as long as we have a reference to the managed object we will have a reference to the cancelation token source. Since we never set it to null, there is no need to check.
For more info look at the conversation in #11799