Beispiel #1
0
 public override void OnInputStreamClosed()
 {
     if (this._responseStream != null)
     {
         this._responseStream.ReadToEnd();
         this._responseStream = null;
     }
     this.ReturnToCache();
 }
Beispiel #2
0
        } // 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
Beispiel #3
0
 internal Stream GetResponseStream()
 {
     this._responseStream = new TcpFixedLengthReadingStream(this, this._contentLength);
     return(this._responseStream);
 }