Skip to content

Commit 385b8a6

Browse files
committed
Increase initial window size for SSH channels from 2 MB to 2147483647 (2^31 - 1) bytes.
1 parent cc04517 commit 385b8a6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Renci.SshNet/Session.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,20 @@ public class Session : ISession
5050
/// Specifies maximum packet size defined by the protocol.
5151
/// </summary>
5252
/// <value>
53-
/// 68536 (64 KB + 3000).
53+
/// 68536 (64 KB + 3000 bytes).
5454
/// </value>
5555
private const int MaximumSshPacketSize = LocalChannelDataPacketSize + 3000;
5656

5757
/// <summary>
5858
/// Holds the initial local window size for the channels.
5959
/// </summary>
6060
/// <value>
61-
/// 2 MB.
61+
/// 2147483647 (2^31 - 1) bytes.
6262
/// </value>
63-
private const int InitialLocalWindowSize = LocalChannelDataPacketSize * 32;
63+
/// <remarks>
64+
/// We currently do not define a maximum (remote) window size.
65+
/// </remarks>
66+
private const int InitialLocalWindowSize = 0x7FFFFFFF;
6467

6568
/// <summary>
6669
/// Holds the maximum size of channel data packets that we receive.

0 commit comments

Comments
 (0)