diff --git a/src/Renci.SshNet/Session.cs b/src/Renci.SshNet/Session.cs index 69dea163..ac929685 100644 --- a/src/Renci.SshNet/Session.cs +++ b/src/Renci.SshNet/Session.cs @@ -50,7 +50,7 @@ namespace Renci.SshNet /// Specifies maximum packet size defined by the protocol. /// /// - /// 68536 (64 KB + 3000). + /// 68536 (64 KB + 3000 bytes). /// private const int MaximumSshPacketSize = LocalChannelDataPacketSize + 3000; @@ -58,9 +58,12 @@ namespace Renci.SshNet /// Holds the initial local window size for the channels. /// /// - /// 2 MB. + /// 2147483647 (2^31 - 1) bytes. /// - private const int InitialLocalWindowSize = LocalChannelDataPacketSize * 32; + /// + /// We currently do not define a maximum (remote) window size. + /// + private const int InitialLocalWindowSize = 0x7FFFFFFF; /// /// Holds the maximum size of channel data packets that we receive.