1g0r

Results 2 comments of 1g0r

I'v got the same problem. It turned out that the problem was in closed tcp connection like described here https://social.msdn.microsoft.com/Forums/en-US/c857cad5-2eb6-4b6c-b0b5-7f4ce320c5cd/c-how-to-determine-if-a-tcpclient-has-been-disconnected?forum=netfxnetcom For me the solution was to override IsConnected property of...

I've wrote proxy that encapsulates TelegramClient and overrides IsConnected like so: if (client.Client.Poll(0, SelectMode.SelectRead)) { byte[] buff = new byte[1]; if (client.Client.Receive(buff, SocketFlags.Peek) == 0) { return false; } }...