@@ -85,7 +85,7 @@ public class Session : ISession
85
85
/// <remarks>
86
86
/// Some server may restrict number to prevent authentication attacks
87
87
/// </remarks>
88
- private static readonly SemaphoreLight AuthenticationConnection = new SemaphoreLight ( 3 ) ;
88
+ private static SemaphoreLight AuthenticationConnection = new SemaphoreLight ( 3 ) ;
89
89
90
90
/// <summary>
91
91
/// Holds metada about session messages
@@ -948,7 +948,7 @@ internal void SendMessage(Message message)
948
948
// increment the packet sequence number only after we're sure the packet has
949
949
// been sent; even though it's only used for the MAC, it needs to be incremented
950
950
// for each package sent.
951
- //
951
+ //
952
952
// the server will use it to verify the data integrity, and as such the order in
953
953
// which messages are sent must follow the outbound packet sequence number
954
954
_outboundPacketSequence ++ ;
@@ -1074,12 +1074,12 @@ private Message ReceiveMessage(Socket socket)
1074
1074
1075
1075
// Construct buffer for holding the payload and the inbound packet sequence as we need both in order
1076
1076
// to generate the hash.
1077
- //
1077
+ //
1078
1078
// The total length of the "data" buffer is an addition of:
1079
1079
// - inboundPacketSequenceLength (4 bytes)
1080
1080
// - packetLength
1081
1081
// - serverMacLength
1082
- //
1082
+ //
1083
1083
// We include the inbound packet sequence to allow us to have the the full SSH packet in a single
1084
1084
// byte[] for the purpose of calculating the client hash. Room for the server MAC is foreseen
1085
1085
// to read the packet including server MAC in a single pass (except for the initial block).
@@ -1842,7 +1842,7 @@ private void MessageListener()
1842
1842
// => the socket will be removed from "readSockets"
1843
1843
// * the socket is disposed during the Select invocation
1844
1844
// => the socket will not be removed from "readSocket"
1845
- //
1845
+ //
1846
1846
// since we handle the second and third condition the same way and Socket.Connected
1847
1847
// allows us to check for both conditions, we use that instead of both checking for
1848
1848
// the removal from "readSockets" and the Connection check
0 commit comments