public override void OnInputStreamClosed() { if (this._responseStream != null) { this._responseStream.ReadToEnd(); this._responseStream = null; } this.ReturnToCache(); }
} // 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; } }
} // ReadHeaders public Stream GetRequestStream() { if (!_bChunked) { _requestStream = new TcpFixedLengthReadingStream(this, _contentLength); } else { _requestStream = new TcpChunkedReadingStream(this); } return(_requestStream); } // GetRequestStream
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
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
internal Stream GetResponseStream() { _responseStream = new TcpFixedLengthReadingStream(this, _contentLength); return _responseStream; }
} // 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