We've been noticing a random freeze on exit for 30 seconds. The frequency is different per machine, but it happens about 10-30% of the time, sometimes more. We've traced it down to TcpTransport.Close(), in this block:
We're running this in the Unity game engine, which run C# script in a Mono environment.
I understand that reproducing this on your end would be difficult, but I'm reporting this in the hopes that I can gain some insight why this is happening.
- What thread is this code waiting for?
- What would be some of the causes of the deadlock?
No messages are being sent or received. It's basically starting up and closing down.
Our temporary workaround is to reduce this wait time from 30 seconds to 5 seconds, but I'd like to eventually find a cause.