The Wayback Machine - https://web.archive.org/web/20210606173109/https://github.com/dotnet/roslyn/pull/53905
Skip to content
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

Isolate reads from writes to avoid cancellation paths #53905

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

@sharwell
Copy link
Member

@sharwell sharwell commented Jun 6, 2021

Fixes AB#1290793

try
{
await invocation(service, pipe.Writer, cancellationToken).ConfigureAwait(false);

This comment has been minimized.

@sharwell

sharwell Jun 6, 2021
Author Member

@AArnott it's difficult to tell from the documentation, but it appears pipe.Writer will automatically be completed by StreamJsonRpc in the event of cancellation. This violates the ordering requirement above by allowing (6) to occur before (4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant