If you haven’t already, I would enable AutoFlush in your writer or manually Flush() after each write. I remember having an issue similar to this in the past before I switched to using a raw Socket and a NetworkStream. Making sure the writer flushes all buffered data to the underlying stream might fix your issue. It has for me in the past when using StreamWriter.
1 Like