net-mdns icon indicating copy to clipboard operation
net-mdns copied to clipboard

Unadvertise a service Takes long time to Release Resources

Open Raj123456788 opened this issue 5 years ago • 1 comments

I can see the Threads being still running and being stopped one by one. I have created 2 buttons for Publish & unpublish. It works fine for the first time if I publish or Unpublish. But if I publish again it takes time to publish. What might be the reason?

Raj123456788 avatar Oct 05 '19 14:10 Raj123456788

What do you mean by Publish? Can you point to your code?

This library uses Tasks and threads are only used indirectly by the task subsystem. My understanding is that Tasks use a cache of threads, so you will not see threads being disposed.

The key resource are the network sockets.

richardschneider avatar Oct 05 '19 21:10 richardschneider