public override void OnInputStreamClosed() { if (this._responseStream != null) { this._responseStream.ReadToEnd(); this._responseStream = null; } this.ReturnToCache(); }
} // ReadHeaders public override void OnInputStreamClosed() { // make sure we read to the end of the response stream if (_responseStream != null) { _responseStream.ReadToEnd(); _responseStream = null; } // return socket to the cache ReturnToCache(); } // OnInputStreamClosed
internal Stream GetResponseStream() { this._responseStream = new TcpFixedLengthReadingStream(this, this._contentLength); return(this._responseStream); }