src/Foundation/Net/Gimela.Net.Http/Transports/ResusableNetworkStream.cs
/// <summary>
/// Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
/// </summary>
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
Closes the current stream and releases any resources ( such as sockets and file handles ) associated with the current stream .
public override void Close()
    {
      if (_isDisposed) throw new ObjectDisposedException(GetType().FullName);
      if (Socket != null && Socket.Connected)
        Socket.Close(); 
      base.Close();
    }
public override void Close ( ) { if ( _isDisposed ) throw new ObjectDisposedException ( GetType ( ) . FullName ) ; if ( Socket != null && Socket . Connected ) Socket . Close ( ) ; base . Close ( ) ; }
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
Closes the current stream and releases any resources ( such as sockets and file handles ) associated with the current stream .
//TODO: Maybe use Disconnect with reuseSocket=true? I tried but it took forever.