I have a service that is responsible for reading and writing from the server. Reading and writing are performed in different threads.
The reader stream is active all the time, while the write stream is activated only to send the message and dies after the message is written to the server, and the response is received.
The service runs for 4 days, and after that I get this error continuously, whenever the service tries to read from the port:
System.Net.Sockets.SocketException: The socket operation could not be completed because the system did not have enough buffer space or because the queue was full
source share