loekd/ServiceFabric.ServiceBus

Possible memory leakage due to CancellationTokenSource?

Opened this issue · 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.