@Override public boolean isUnderlyingConnectionToBeClosed() { return content.getHttpHeader().getProcessingState().isStayAlive(); }
@Override public void completed(HttpTransactionContext context) { if (!context.isReuseConnection()) { final Connection c = (Connection) httpContext.getCloseable(); if (!httpContext.getRequest().getProcessingState().isStayAlive()) { if (notKeepAliveReason == null) { notKeepAliveReason = new IOException("HTTP keep-alive was disabled for this connection"); } c.closeWithReason(notKeepAliveReason); } else { final ConnectionManager cm = context.provider.getConnectionManager(); cm.returnConnection(c); } } } });
@Override public boolean isUnderlyingConnectionToBeClosed() { return content.getHttpHeader().getProcessingState().isStayAlive(); }
@Override public boolean isUnderlyingConnectionToBeClosed() { return content.getHttpHeader().getProcessingState().isStayAlive(); }
@Override public boolean isUnderlyingConnectionToBeClosed() { return content.getHttpHeader().getProcessingState().isStayAlive(); }
@Override public void completed(HttpTransactionContext context) { if (!context.isReuseConnection()) { final Connection c = (Connection) httpContext.getCloseable(); if (!httpContext.getRequest().getProcessingState().isStayAlive()) { if (notKeepAliveReason == null) { notKeepAliveReason = new IOException("HTTP keep-alive was disabled for this connection"); } c.closeWithReason(notKeepAliveReason); } else { final ConnectionManager cm = context.provider.getConnectionManager(); cm.returnConnection(c); } } } });
@Override public void completed(HttpTransactionContext context) { if (!context.isReuseConnection()) { final Connection c = (Connection) httpContext.getCloseable(); if (!httpContext.getRequest().getProcessingState().isStayAlive()) { context.keepAliveDisabled(); } else { final ConnectionManager cm = context.provider.getConnectionManager(); cm.returnConnection(c); } } } });
@Override public void completed(HttpTransactionContext context) { if (!context.isReuseConnection()) { final Connection c = (Connection) httpContext.getCloseable(); if (!httpContext.getRequest().getProcessingState().isStayAlive()) { context.keepAliveDisabled(); } else { final ConnectionManager cm = context.provider.getConnectionManager(); cm.returnConnection(c); } } } });
if (isLast) { onHttpPacketParsed(httpHeader, ctx); if (!httpHeader.getProcessingState().isStayAlive()) { httpHeader.getProcessingState().getHttpContext().close(); return ctx.getStopAction();
if (isLast) { onHttpPacketParsed(httpHeader, ctx); if (!httpHeader.getProcessingState().isStayAlive()) { httpHeader.getProcessingState().getHttpContext().close(); return ctx.getStopAction();
if (isLast) { onHttpPacketParsed(httpHeader, ctx); if (!httpHeader.getProcessingState().isStayAlive()) { httpHeader.getProcessingState().getHttpContext().close(); return ctx.getStopAction();
if (isLast) { onHttpPacketParsed(httpHeader, ctx); if (!httpHeader.getProcessingState().isStayAlive()) { httpHeader.getProcessingState().getHttpContext().close(); return ctx.getStopAction();
if (isLast) { onHttpPacketParsed(httpHeader, ctx); if (!httpHeader.getProcessingState().isStayAlive()) { httpHeader.getProcessingState().getHttpContext().close(); return ctx.getStopAction();
if (isLast) { onHttpPacketParsed(httpHeader, ctx); if (!httpHeader.getProcessingState().isStayAlive()) { httpHeader.getProcessingState().getHttpContext().close(); return ctx.getStopAction();
if (isLast) { onHttpPacketParsed(httpHeader, ctx); if (!httpHeader.getProcessingState().isStayAlive()) { httpHeader.getProcessingState().getHttpContext().close(); return ctx.getStopAction();
if (isLast) { onHttpPacketParsed(httpHeader, ctx); if (!httpHeader.getProcessingState().isStayAlive()) { httpHeader.getProcessingState().getHttpContext().close(); return ctx.getStopAction();
if (isLast) { onHttpPacketParsed(httpHeader, ctx); if (!httpHeader.getProcessingState().isStayAlive()) { httpHeader.getProcessingState().getHttpContext().close(); return ctx.getStopAction();
if (isLast) { onHttpPacketParsed(httpHeader, ctx); if (!httpHeader.getProcessingState().isStayAlive()) { httpHeader.getProcessingState().getHttpContext().close(); return ctx.getStopAction();