Browse Source

Reduce default buffer size as workaround for SSH servers issues.

Gert Driesen 11 years ago
parent
commit
52b97729e2

+ 5 - 0
Renci.SshClient/Build/nuget/SSH.NET.nuspec

@@ -20,6 +20,11 @@
           * Added support for ssh.com (SSH-2) private keys (issue #1987)
           * Support an acceptable group of up to 8192 bits for SHA-1 and SHA-256 Diffie-Hellman Group and Key Exchange (issues #1973 and #1777)
 
+          Changes:
+
+          * Reduced default buffer size for SftpClient from 64 KB to 32 KB as a workaround for issues in specific SSH servers.
+            We'll be increasing the default buffer size again once the issues in the SSH servers are resolved.
+
           Fixes:
 
           * SftpClient is throwing undocumented exceptions (issue #2148)

+ 2 - 2
Renci.SshClient/Renci.SshNet/SftpClient.cs

@@ -58,7 +58,7 @@ namespace Renci.SshNet
         /// Gets or sets the maximum size of the buffer in bytes.
         /// </summary>
         /// <value>
-        /// The size of the buffer. The default buffer size is 65536 bytes (64 KB).
+        /// The size of the buffer. The default buffer size is 32768 bytes (32 KB).
         /// </value>
         /// <remarks>
         /// <para>
@@ -229,7 +229,7 @@ namespace Renci.SshNet
             : base(connectionInfo, ownsConnectionInfo, serviceFactory)
         {
             OperationTimeout = new TimeSpan(0, 0, 0, 0, -1);
-            BufferSize = 1024 * 64;
+            BufferSize = 1024 * 32;
         }
 
         #endregion