Преглед изворни кода

Use a very short timeout when clearing the read buffer.

drieseng пре 9 година
родитељ
комит
344e6e52c0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Renci.SshNet/Abstractions/SocketAbstraction.cs

+ 1 - 1
src/Renci.SshNet/Abstractions/SocketAbstraction.cs

@@ -88,7 +88,7 @@ namespace Renci.SshNet.Abstractions
 
                 do
                 {
-                    bytesReceived = ReadPartial(socket, buffer, 0, buffer.Length, TimeSpan.FromSeconds(2));
+                    bytesReceived = ReadPartial(socket, buffer, 0, buffer.Length, TimeSpan.FromMilliseconds(10));
                 } while (bytesReceived > 0);
             }
             catch