Quellcode durchsuchen

Increase max. SSH packet size back to 68536 (64 KB + 3000).

Gert Driesen vor 8 Jahren
Ursprung
Commit
7c05bd19ba
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/Renci.SshNet/Session.cs

+ 2 - 2
src/Renci.SshNet/Session.cs

@@ -50,9 +50,9 @@ namespace Renci.SshNet
         /// Specifies maximum packet size defined by the protocol.
         /// </summary>
         /// <value>
-        /// 35000.
+        /// 68536 (64 KB + 3000).
         /// </value>
-        private const int MaximumSshPacketSize = 35000;
+        private const int MaximumSshPacketSize = LocalChannelDataPacketSize + 3000;
 
         /// <summary>
         /// Holds the initial local window size for the channels.