Yortw / RSSDP

Really Simple Service Discovery Protocol - a 100% .Net implementation of the SSDP protocol for publishing custom/basic devices, and discovering all device types on a network.
http://yortw.github.io/RSSDP/
MIT License
282 stars 66 forks source link

FIX random crash: Catch ObjectDispose exceptions on EndReceiveFrom #106

Open gelexgaray opened 3 years ago

gelexgaray commented 3 years ago

I've fixed a random crash on UDPSocket when running on dot net core. It would be great if you could integrate it

captainjono commented 3 years ago

@gelexgaray

I found more issues with this on macos - im getting random shutdown crashes in my app and ive pin-pointed it to hanging timers. The server task.delays without cancellation so there are various race condition that can happen to your app at scale.

Ive added cancellation and updated the project to netstandard also... https://www.nuget.org/packages/Rssdp.NetStd/4.0.3