You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console.WriteLine("[{0}] Sent SSH_MSG_CHANNEL_CLOSE for channel {1}/{2}.",Thread.CurrentThread.ManagedThreadId,LocalChannelNumber,RemoteChannelNumber);
547
566
_closeMessageSent=true;
548
567
549
568
// only wait for the channel to be closed by the server if we didn't send a
550
569
// SSH_MSG_CHANNEL_CLOSE as response to a SSH_MSG_CHANNEL_CLOSE sent by the
551
570
// server
571
+
Console.WriteLine("[{0}] Waiting for server to close channel {1}/{2}.",Thread.CurrentThread.ManagedThreadId,LocalChannelNumber,RemoteChannelNumber);
552
572
try
553
573
{
554
574
WaitOnHandle(_channelClosedWaitHandle);
575
+
Console.WriteLine("[{0}] Finished waiting for server to close channel {1}/{2}.",Thread.CurrentThread.ManagedThreadId,LocalChannelNumber,RemoteChannelNumber);
555
576
}
556
-
catch(SshConnectionException)
577
+
catch(SshConnectionExceptionex)
557
578
{
579
+
Console.WriteLine("[{0}] SSH connection exception waiting for server to close channel {1}/{2}: {3}.",
580
+
Thread.CurrentThread.ManagedThreadId,
581
+
LocalChannelNumber,
582
+
RemoteChannelNumber,
583
+
ex.ToString());
558
584
// ignore connection failures as we're closing the channel anyway
559
585
}
586
+
catch(Exceptionex)
587
+
{
588
+
Console.WriteLine("[{0}] Exception waiting for server to close channel {1}/{2}: {3}.",
0 commit comments