|
|
@@ -94,10 +94,6 @@ namespace Renci.SshNet.Channels
|
|
|
/// </summary>
|
|
|
private void ForwardedPort_Closing(object sender, EventArgs eventArgs)
|
|
|
{
|
|
|
-#if DEBUG_GERT
|
|
|
- Console.WriteLine("ID: " + Thread.CurrentThread.ManagedThreadId + " | ChannelForwardedTcpip.ForwardedPort_Closing");
|
|
|
-#endif // DEBUG_GERT
|
|
|
-
|
|
|
// signal to the server that we will not send anything anymore; this will also interrupt the
|
|
|
// blocking receive in Bind if the server sends FIN/ACK in time
|
|
|
//
|
|
|
@@ -111,10 +107,6 @@ namespace Renci.SshNet.Channels
|
|
|
/// <param name="how">One of the <see cref="SocketShutdown"/> values that specifies the operation that will no longer be allowed.</param>
|
|
|
private void ShutdownSocket(SocketShutdown how)
|
|
|
{
|
|
|
-#if DEBUG_GERT
|
|
|
- Console.WriteLine("ID: " + Thread.CurrentThread.ManagedThreadId + " | ChannelForwardedTcpip.ShutdownSocket");
|
|
|
-#endif // DEBUG_GERT
|
|
|
-
|
|
|
if (_socket == null || !_socket.Connected)
|
|
|
return;
|
|
|
|
|
|
@@ -138,10 +130,6 @@ namespace Renci.SshNet.Channels
|
|
|
|
|
|
lock (_socketShutdownAndCloseLock)
|
|
|
{
|
|
|
-#if DEBUG_GERT
|
|
|
- Console.WriteLine("ID: " + Thread.CurrentThread.ManagedThreadId + " | ChannelForwardedTcpip.CloseSocket");
|
|
|
-#endif // DEBUG_GERT
|
|
|
-
|
|
|
var socket = _socket;
|
|
|
if (socket != null)
|
|
|
{
|
|
|
@@ -160,10 +148,6 @@ namespace Renci.SshNet.Channels
|
|
|
/// <param name="wait"><c>true</c> to wait for the SSH_MSG_CHANNEL_CLOSE message to be received from the server; otherwise, <c>false</c>.</param>
|
|
|
protected override void Close(bool wait)
|
|
|
{
|
|
|
-#if DEBUG_GERT
|
|
|
- Console.WriteLine("ID: " + Thread.CurrentThread.ManagedThreadId + " | ChannelForwardedTcpip.Close");
|
|
|
-#endif // DEBUG_GERT
|
|
|
-
|
|
|
var forwardedPort = _forwardedPort;
|
|
|
if (forwardedPort != null)
|
|
|
{
|
|
|
@@ -184,15 +168,6 @@ namespace Renci.SshNet.Channels
|
|
|
CloseSocket();
|
|
|
}
|
|
|
|
|
|
-#if DEBUG_GERT
|
|
|
- protected override void OnClose()
|
|
|
- {
|
|
|
- base.OnClose();
|
|
|
-
|
|
|
- Console.WriteLine("ID: " + Thread.CurrentThread.ManagedThreadId + " | OnClose");
|
|
|
- }
|
|
|
-#endif // DEBUG_GERT
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// Called when channel data is received.
|
|
|
/// </summary>
|