Isolate reads from writes to avoid cancellation paths #53905
Conversation
Fixes AB#1290793
| try | ||
| { | ||
| await invocation(service, pipe.Writer, cancellationToken).ConfigureAwait(false); |
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).
@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).

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Fixes AB#1290793