Explorar el Código

Use a very short timeout when clearing the read buffer.

drieseng hace 9 años
padre
commit
344e6e52c0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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