private void abort(Throwable failure) { closed(); _channel.abort(failure); }
@Override public void failed(Throwable th) { abort(x); super.failed(x); } });
private void abort(Throwable failure) { closed(); _channel.abort(failure); }
@Override public void abort() { super.abort(); _generator.setPersistent(false); }
@Override public void abort(Throwable failure) { super.abort(failure); _httpConnection.getGenerator().setPersistent(false); }
@Override public void abort(Throwable failure) { super.abort(failure); _httpConnection.getGenerator().setPersistent(false); }
_channel.abort();
private void minimalErrorResponse(Throwable failure) { try { int code = 500; Integer status=(Integer)_request.getAttribute(RequestDispatcher.ERROR_STATUS_CODE); if (status!=null) code = status.intValue(); else { Throwable cause = unwrap(failure,BadMessageException.class); if (cause instanceof BadMessageException) code = ((BadMessageException)cause).getCode(); } _response.reset(true); _response.setStatus(code); _response.flushBuffer(); } catch (Throwable x) { if (x != failure) failure.addSuppressed(x); abort(failure); } }
_channel.abort();
public boolean sendResponse(MetaData.Response info, ByteBuffer content, boolean complete) throws IOException { try(Blocker blocker = _response.getHttpOutput().acquireWriteBlockingCallback()) { boolean committing = sendResponse(info,content,complete,blocker); blocker.block(); return committing; } catch (Throwable failure) { if (LOG.isDebugEnabled()) LOG.debug(failure); abort(failure); throw failure; } }
protected boolean sendResponse(MetaData.Response info, ByteBuffer content, boolean complete) throws IOException { try(Blocker blocker = _response.getHttpOutput().acquireWriteBlockingCallback()) { boolean committing = sendResponse(info,content,complete,blocker); blocker.block(); return committing; } catch (Throwable failure) { if (LOG.isDebugEnabled()) LOG.debug(failure); abort(failure); throw failure; } }
@Override public void failed(final Throwable x) { if (LOG.isDebugEnabled()) LOG.debug("Commit failed", x); if (x instanceof BadMessageException) { _transport.send(HttpGenerator.RESPONSE_500_INFO, false, null, true, new Callback.Nested(this) { @Override public void succeeded() { super.failed(x); _response.getHttpOutput().closed(); } @Override public void failed(Throwable th) { abort(x); super.failed(x); } }); } else { abort(x); super.failed(x); } } }
abort(e); throw new BadMessageException(status,reason);
abort(); if (!(x instanceof EofException)) LOG.warn("Could not send response error 500: "+x);
_channel.abort(new IOException()); return; case 102:
_channel.abort(new IOException()); return; case 102:
_channel.abort(new IOException()); return; case 102:
_channel.abort(); return; case 102: