Skip to content

Commit 52b9772

Browse files
committed
Reduce default buffer size as workaround for SSH servers issues.
1 parent c45bc8f commit 52b9772

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Renci.SshClient/Build/nuget/SSH.NET.nuspec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
* Added support for ssh.com (SSH-2) private keys (issue #1987)
2121
* 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)
2222

23+
Changes:
24+
25+
* Reduced default buffer size for SftpClient from 64 KB to 32 KB as a workaround for issues in specific SSH servers.
26+
We'll be increasing the default buffer size again once the issues in the SSH servers are resolved.
27+
2328
Fixes:
2429

2530
* SftpClient is throwing undocumented exceptions (issue #2148)

Renci.SshClient/Renci.SshNet/SftpClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public TimeSpan OperationTimeout
5858
/// Gets or sets the maximum size of the buffer in bytes.
5959
/// </summary>
6060
/// <value>
61-
/// The size of the buffer. The default buffer size is 65536 bytes (64 KB).
61+
/// The size of the buffer. The default buffer size is 32768 bytes (32 KB).
6262
/// </value>
6363
/// <remarks>
6464
/// <para>
@@ -229,7 +229,7 @@ internal SftpClient(ConnectionInfo connectionInfo, bool ownsConnectionInfo, ISer
229229
: base(connectionInfo, ownsConnectionInfo, serviceFactory)
230230
{
231231
OperationTimeout = new TimeSpan(0, 0, 0, 0, -1);
232-
BufferSize = 1024 * 64;
232+
BufferSize = 1024 * 32;
233233
}
234234

235235
#endregion

0 commit comments

Comments
 (0)