diff --git a/src/Renci.SshNet/Session.cs b/src/Renci.SshNet/Session.cs index 831353da..2a8b94de 100644 --- a/src/Renci.SshNet/Session.cs +++ b/src/Renci.SshNet/Session.cs @@ -49,7 +49,10 @@ namespace Renci.SshNet /// /// Specifies maximum packet size defined by the protocol. /// - private const int MaximumSshPacketSize = LocalChannelDataPacketSize + 3000; + /// + /// 35000. + /// + private const int MaximumSshPacketSize = 35000; /// /// Holds the initial local window size for the channels. @@ -65,6 +68,15 @@ namespace Renci.SshNet /// /// 64 KB. /// + /// + /// + /// This is the maximum size (in bytes) we support for the data (payload) of a + /// SSH_MSG_CHANNEL_DATA message we receive. + /// + /// + /// We currently do not enforce this limit. + /// + /// private const int LocalChannelDataPacketSize = 1024*64; #if FEATURE_REGEX_COMPILE