ServiceFabric.ServiceBus icon indicating copy to clipboard operation
ServiceFabric.ServiceBus copied to clipboard

Possible memory leakage due to CancellationTokenSource?

Open adaskos opened this issue 3 years ago • 0 comments

Hi there. First of all thanks for your work on this library. We use it in for quite many years, and have recently switched to the .NetStandard version too.

I've noticed though, an ever increasing memory usage in our listener service, all of it due to instances of CancellationTokenSource.

Looking at class ServiceBusQueueCommunicationListener , method ReceiveMessageAsync, I see you create a CreateLinkedTokenSource for every received message, but never dispose them. Do you think this could be the reason?

Thanks in advance.

adaskos avatar Sep 03 '21 12:09 adaskos