C# socket read error
问题 In my program i'm creating socket and whes client connects i'm creating new thread and trying to read and write from/to connected to this socket, but alway get an Read Error because host-computer closed connection for the second command, first command from client worfs fine, and third works fine. i try to check if clientSocket is connected and if networkStream is readable and they alway returns true. how can i solve this? and how can it be - networkStream.CanRead returns true but