Skip to content

Commit f52d81a

Browse files
committed
Added more tracing to troubleshoot issue #112.
1 parent 5f6c3b0 commit f52d81a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Renci.SshNet/Session.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,12 @@ internal void SendMessage(Message message)
839839

840840
if (_keyExchangeInProgress && !(message is IKeyExchangedAllowed))
841841
{
842+
DiagnosticAbstraction.Log(string.Format("[{0}] Waiting for KEX to complete to send '{1}': '{2}'.", ToHex(SessionId), message.GetType().Name, message));
843+
842844
// Wait for key exchange to be completed
843845
WaitOnHandle(_keyExchangeCompletedWaitHandle);
846+
847+
DiagnosticAbstraction.Log(string.Format("[{0}] KEX complete to send '{1}': '{2}'.", ToHex(SessionId), message.GetType().Name, message));
844848
}
845849

846850
DiagnosticAbstraction.Log(string.Format("[{0}] SendMessage to server '{1}': '{2}'.", ToHex(SessionId), message.GetType().Name, message));

0 commit comments

Comments
 (0)