Oct 16, 2010

Strange behavior of NetworkStream.WriteByte(byte b)

It turns out if you do WriteByte() too frequently, it crashes the network of the computer. The problem might be XP does not handle buffer very well or it blocks too many packets being sent.

We solve the problem by using BufferedStream and do not flush() unless we need to. And that's it. It solves all the problems.