willardf / Hazel-Networking

Hazel Networking is a low level networking library for C# providing connection-oriented, message-based communication via RUDP.
MIT License
391 stars 60 forks source link

Socket.Poll on listener causing app to freeze during shutdown #23

Closed albpb2 closed 2 years ago

albpb2 commented 3 years ago

I'm testing the Hazel library and this Poll with an infinite timeout is causing the app (a server with a listener) to freeze in the Unity editor during the listener's dispose on this.receiveThread.Join().

https://github.com/willardf/Hazel-Networking/blob/71ad40411f3f423da44d0c0365c7a50ebf9e0106/Hazel/FewerThreads/ThreadLimitedUdpConnectionListener.cs#L212

willardf commented 2 years ago

For the record, this was fixed with 98d9f5d2c8664b19707907d1a7ca4863ec3e396a. Thanks for bringing it up way back when!