I'm trying to simply disconnect socket client.
TcpClient socket = new TcpClient();
NetworkStream stream = socket.GetStream();
// ...
stream.Close();
socket.Close();
Well, it works perfectly fine(server notices when client disconnects) when launching it without Mono on Windows. When using Mono on Windows or Linux it just doesn't work, server doesn't notice that client disconnected. What should be a proper solution for this? And why does this happens?