@@ -94,10 +94,6 @@ protected override void OnErrorOccured(Exception exp)
94
94
/// </summary>
95
95
private void ForwardedPort_Closing ( object sender , EventArgs eventArgs )
96
96
{
97
- #if DEBUG_GERT
98
- Console . WriteLine ( "ID: " + Thread . CurrentThread . ManagedThreadId + " | ChannelForwardedTcpip.ForwardedPort_Closing" ) ;
99
- #endif // DEBUG_GERT
100
-
101
97
// signal to the server that we will not send anything anymore; this will also interrupt the
102
98
// blocking receive in Bind if the server sends FIN/ACK in time
103
99
//
@@ -111,10 +107,6 @@ private void ForwardedPort_Closing(object sender, EventArgs eventArgs)
111
107
/// <param name="how">One of the <see cref="SocketShutdown"/> values that specifies the operation that will no longer be allowed.</param>
112
108
private void ShutdownSocket ( SocketShutdown how )
113
109
{
114
- #if DEBUG_GERT
115
- Console . WriteLine ( "ID: " + Thread . CurrentThread . ManagedThreadId + " | ChannelForwardedTcpip.ShutdownSocket" ) ;
116
- #endif // DEBUG_GERT
117
-
118
110
if ( _socket == null || ! _socket . Connected )
119
111
return ;
120
112
@@ -138,10 +130,6 @@ private void CloseSocket()
138
130
139
131
lock ( _socketShutdownAndCloseLock )
140
132
{
141
- #if DEBUG_GERT
142
- Console . WriteLine ( "ID: " + Thread . CurrentThread . ManagedThreadId + " | ChannelForwardedTcpip.CloseSocket" ) ;
143
- #endif // DEBUG_GERT
144
-
145
133
var socket = _socket ;
146
134
if ( socket != null )
147
135
{
@@ -160,10 +148,6 @@ private void CloseSocket()
160
148
/// <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>
161
149
protected override void Close ( bool wait )
162
150
{
163
- #if DEBUG_GERT
164
- Console . WriteLine ( "ID: " + Thread . CurrentThread . ManagedThreadId + " | ChannelForwardedTcpip.Close" ) ;
165
- #endif // DEBUG_GERT
166
-
167
151
var forwardedPort = _forwardedPort ;
168
152
if ( forwardedPort != null )
169
153
{
@@ -184,15 +168,6 @@ protected override void Close(bool wait)
184
168
CloseSocket ( ) ;
185
169
}
186
170
187
- #if DEBUG_GERT
188
- protected override void OnClose ( )
189
- {
190
- base . OnClose ( ) ;
191
-
192
- Console . WriteLine ( "ID: " + Thread . CurrentThread . ManagedThreadId + " | OnClose" ) ;
193
- }
194
- #endif // DEBUG_GERT
195
-
196
171
/// <summary>
197
172
/// Called when channel data is received.
198
173
/// </summary>
0 commit comments