I have this streamreader:
Boolean read = false; while (wline!=\"exit\") { while (!read || streamReader.P
If this is System.IO.StreamReader, then set it on the BaseStream:
System.IO.StreamReader
BaseStream
streamReader.BaseStream.ReadTimeout = 2000; //milliseconds, so 2 seconds