소스 검색

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