public void onInputShutdown() throws IOException { // If we don't have a committed response and we are not suspended if (_generator.isIdle() && !_request.getAsyncContinuation().isSuspended()) { // then no more can happen, so close. _endp.close(); } // Make idle parser seek EOF if (_parser.isIdle()) _parser.setPersistent(false); }
public void reset() { _parser.reset(); _parser.returnBuffers(); // TODO maybe only on unhandle _requestFields.clear(); _request.recycle(); _generator.reset(); _generator.returnBuffers();// TODO maybe only on unhandle _responseFields.clear(); _response.recycle(); _uri.clear(); _writer=null; _earlyEOF = false; }
if (!_parser.isComplete() && !_endp.isInputShutdown()) _parser.parseAvailable(); _parser.reset(); _endp.shutdownOutput(); if (_parser.isComplete() && _generator.isComplete()) _parser.returnBuffers(); _generator.returnBuffers();
else if (!_parser.isComplete() && _parser.parseAvailable()) progress=true; boolean parserComplete = _parser.isComplete(); boolean generatorComplete = _generator.isComplete(); boolean complete = parserComplete && generatorComplete; _parser.returnBuffers(); _generator.returnBuffers();
case HttpVersions.HTTP_1_0_ORDINAL: _generator.setHead(_head); if (_parser.isPersistent()) _parser.setPersistent(true); _generator.setHead(_head); if (!_parser.isPersistent())
public boolean isIdle() { return _generator.isIdle() && (_parser.isIdle() || _delayedHandling); }
public ServerHTTPSPDYAsyncConnection(Connector connector, AsyncEndPoint endPoint, Server server, short version, SPDYAsyncConnection connection, PushStrategy pushStrategy, Stream stream) { super(connector, endPoint, server); this.version = version; this.connection = connection; this.pushStrategy = pushStrategy; this.stream = stream; getParser().setPersistent(true); }
if (!_parser.isComplete() && !_endp.isInputShutdown()) _parser.parseAvailable(); _parser.reset(); _endp.shutdownOutput(); if (_parser.isComplete() && _generator.isComplete()) _parser.returnBuffers(); _generator.returnBuffers();
else if (!_parser.isComplete() && _parser.parseAvailable()) progress=true; boolean parserComplete = _parser.isComplete(); boolean generatorComplete = _generator.isComplete(); boolean complete = parserComplete && generatorComplete; _parser.returnBuffers(); _generator.returnBuffers();
case HttpVersions.HTTP_1_0_ORDINAL: _generator.setHead(_head); if (_parser.isPersistent()) _parser.setPersistent(true); if (_parser instanceof HttpParser) ((HttpParser)_parser).setState(HttpParser.STATE_END); _generator.setHead(_head); if (!_parser.isPersistent())
public boolean isIdle() { return _generator.isIdle() && (_parser.isIdle() || _delayedHandling); }
if (!_parser.isComplete() && !_endp.isInputShutdown()) _parser.parseAvailable(); _parser.reset(); _endp.shutdownOutput(); if (_parser.isComplete() && _generator.isComplete()) _parser.returnBuffers(); _generator.returnBuffers();
else if (!_parser.isComplete() && _parser.parseAvailable()) progress=true; boolean parserComplete = _parser.isComplete(); boolean generatorComplete = _generator.isComplete(); boolean complete = parserComplete && generatorComplete; _parser.returnBuffers(); _generator.returnBuffers();
public void onInputShutdown() throws IOException { // If we don't have a committed response and we are not suspended if (_generator.isIdle() && !_request.getAsyncContinuation().isSuspended()) { // then no more can happen, so close. _endp.close(); } // Make idle parser seek EOF if (_parser.isIdle()) _parser.setPersistent(false); }
case HttpVersions.HTTP_1_0_ORDINAL: _generator.setHead(_head); if (_parser.isPersistent()) _parser.setPersistent(true); if (_parser instanceof HttpParser) ((HttpParser)_parser).setState(HttpParser.STATE_END); _generator.setHead(_head); if (!_parser.isPersistent())
public void reset() { _parser.reset(); _parser.returnBuffers(); // TODO maybe only on unhandle _requestFields.clear(); _request.recycle(); _generator.reset(); _generator.returnBuffers();// TODO maybe only on unhandle _responseFields.clear(); _response.recycle(); _uri.clear(); _writer=null; _earlyEOF = false; }
public boolean isIdle() { return _generator.isIdle() && (_parser.isIdle() || _delayedHandling); }
if (!_parser.isComplete() && !_endp.isInputShutdown()) _parser.parseAvailable(); _parser.reset(); _endp.shutdownOutput(); if (_parser.isComplete() && _generator.isComplete()) _parser.returnBuffers(); _generator.returnBuffers();
else if (!_parser.isComplete() && _parser.parseAvailable()) progress=true; boolean parserComplete = _parser.isComplete(); boolean generatorComplete = _generator.isComplete(); boolean complete = parserComplete && generatorComplete; _parser.returnBuffers(); _generator.returnBuffers();
public void onInputShutdown() throws IOException { // If we don't have a committed response and we are not suspended if (_generator.isIdle() && !_request.getAsyncContinuation().isSuspended()) { // then no more can happen, so close. _endp.close(); } // Make idle parser seek EOF if (_parser.isIdle()) _parser.setPersistent(false); }