RemoveClient() private method

private RemoveClient ( HttpClient client ) : void
client HttpClient
return void
Example #1
0
        internal void Close()
        {
            State = HttpStates.Closed;

            DebugFormat(
                "{0} - Closing connection after {1} requests", this, requestCount);
            try
            {
                client.Close();
            }
            catch (Exception)
            {
                // ignored
            }

            owner.RemoveClient(this);
            if (stream != null)
            {
                try
                {
                    stream.Dispose();
                }
                catch (ObjectDisposedException)
                {
                }
            }
        }