dotnet/orleans

Undisposed Cancellation Tokens Sources

ivanvyd opened this issue · 0 comments

There are multiple places with undisposed CancellationTokenSource, potentially leading to leaks due to unreleased memory.

For instance,

var cancellation = new CancellationTokenSource(collectionOptions.Value.ActivationTimeout);

var timeoutTokenSource = new CancellationTokenSource(this.collectionOptions.Value.DeactivationTimeout);

The issue is opened by comment:
Originally posted by @ReubenBond in #9080 (comment)