File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ public class Session : ISession
49
49
/// <summary>
50
50
/// Specifies maximum packet size defined by the protocol.
51
51
/// </summary>
52
- private const int MaximumSshPacketSize = LocalChannelDataPacketSize + 3000 ;
52
+ /// <value>
53
+ /// 35000.
54
+ /// </value>
55
+ private const int MaximumSshPacketSize = 35000 ;
53
56
54
57
/// <summary>
55
58
/// Holds the initial local window size for the channels.
@@ -65,6 +68,15 @@ public class Session : ISession
65
68
/// <value>
66
69
/// 64 KB.
67
70
/// </value>
71
+ /// <remarks>
72
+ /// <para>
73
+ /// This is the maximum size (in bytes) we support for the data (payload) of a
74
+ /// <c>SSH_MSG_CHANNEL_DATA</c> message we receive.
75
+ /// </para>
76
+ /// <para>
77
+ /// We currently do not enforce this limit.
78
+ /// </para>
79
+ /// </remarks>
68
80
private const int LocalChannelDataPacketSize = 1024 * 64 ;
69
81
70
82
#if FEATURE_REGEX_COMPILE
You can’t perform that action at this time.
0 commit comments