I have a service that is responsible for reading and writing from a server. The reading and writing is done in different threads.
The reader thread is active all the
I would also strongly suggest you look at your write thread, and how you are referencing resources related to the Socket. Ie, are you calling Close/Dispose for any NetworkStream or other objects you are using with the Socket? A code sample from the write thread would be helpful if you're still struggling with the problem.
You might also want to monitor the process memory and handle usage through the task manager.