public override void OnInputStreamClosed()
 {
     if (this._responseStream != null)
     {
         this._responseStream.ReadToEnd();
         this._responseStream = null;
     }
     this.ReturnToCache();
 }
Example #2
0
 public override void OnInputStreamClosed()
 {
     if (this._responseStream != null)
     {
         this._responseStream.ReadToEnd();
         this._responseStream = null;
     }
     this.ReturnToCache();
 }
Example #3
0
        } // CanServiceAnotherRequest

        // Prepare for reading a new request off of the same socket
        protected override void PrepareForNewMessage()
        {
            if (_requestStream != null)
            {
                if (!_requestStream.FoundEnd)
                {
                    _requestStream.ReadToEnd();
                }
                _requestStream = null;
            }
        } // PrepareForNewRequest
 protected override void PrepareForNewMessage()
 {
     if (this._requestStream != null)
     {
         if (!this._requestStream.FoundEnd)
         {
             this._requestStream.ReadToEnd();
         }
         this._requestStream = null;
     }
 }
Example #5
0
 protected override void PrepareForNewMessage()
 {
     if (this._requestStream != null)
     {
         if (!this._requestStream.FoundEnd)
         {
             this._requestStream.ReadToEnd();
         }
         this._requestStream = null;
     }
 }
Example #6
0
        } // ReadHeaders

        public Stream GetRequestStream()
        {
            if (!_bChunked)
            {
                _requestStream = new TcpFixedLengthReadingStream(this, _contentLength);
            }
            else
            {
                _requestStream = new TcpChunkedReadingStream(this);
            }
            return(_requestStream);
        } // GetRequestStream
Example #7
0
 public Stream GetResponseStream()
 {
     if (!this._bChunked)
     {
         this._responseStream = new TcpFixedLengthReadingStream(this, this._contentLength);
     }
     else
     {
         this._responseStream = new TcpChunkedReadingStream(this);
     }
     return(this._responseStream);
 }
 public Stream GetRequestStream()
 {
     if (!this._bChunked)
     {
         this._requestStream = new TcpFixedLengthReadingStream(this, this._contentLength);
     }
     else
     {
         this._requestStream = new TcpChunkedReadingStream(this);
     }
     return this._requestStream;
 }
        } // PrepareForNewRequest


        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
        } // PrepareForNewRequest

        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
 protected override void PrepareForNewMessage()
 {
     this._requestStream = null;
     this._responseStream = null;
 }
        } // TcpClientSocketHandler
 
        

        // Prepare for reading a new request off of the same socket
        protected override void PrepareForNewMessage()
        {
            _requestStream = null;
            _responseStream = null;
        } // PrepareForNewRequest
        } // SendRequest


        public Stream GetResponseStream()
        {
            if (!_bChunked)
                _responseStream = new TcpFixedLengthReadingStream(this, _contentLength);
            else
                _responseStream = new TcpChunkedReadingStream(this);
            
            return _responseStream;
        } // GetResponseStream
        } // TcpClientSocketHandler

        // Prepare for reading a new request off of the same socket
        protected override void PrepareForNewMessage()
        {
            _requestStream  = null;
            _responseStream = null;
        } // PrepareForNewRequest
Example #15
0
 internal Stream GetResponseStream()
 {
     _responseStream = new TcpFixedLengthReadingStream(this, _contentLength);
     return _responseStream;
 }
Example #16
0
        } // CanServiceAnotherRequest
        

        // Prepare for reading a new request off of the same socket
        protected override void PrepareForNewMessage()
        {
            if (_requestStream != null)
            {
                if (!_requestStream.FoundEnd)
                    _requestStream.ReadToEnd();
                _requestStream = null;
            }
        } // PrepareForNewRequest
Example #17
0
 protected override void PrepareForNewMessage()
 {
     this._requestStream  = null;
     this._responseStream = null;
 }