src/main/java/com/findupon/commons/netops/strategies/ChloeConnectionReuseStrategy.java
/**
	 * If a proxied request was executed and IP response headers were received ({@link RequestMeta#forceProxyReAuth} will be {@code true}) from
	 * {@link com.findupon.commons.netops.ChloeHttpRequestExecutor#doReceiveResponse(HttpRequest, HttpClientConnection, HttpContext)}),
	 * do not persist the connection, forcing re-auth to the proxy where we can safely set our new request headers.
	 */
If a proxied request was executed and IP response headers were received ( RequestMeta#forceProxyReAuth will be  true) from
com.findupon.commons.netops.ChloeHttpRequestExecutor#doReceiveResponse(HttpRequest, HttpClientConnection, HttpContext)),
do not persist the connection, forcing re-auth to the proxy where we can safely set our new request headers.
If a proxied request was executed and IP response headers were received ( RequestMeta#forceProxyReAuth will be true ) from com . findupon . commons . netops . ChloeHttpRequestExecutor#doReceiveResponse ( HttpRequest HttpClientConnection HttpContext )) do not persist the connection forcing re - auth to the proxy where we can safely set our new request headers .
@Override
	public boolean keepAlive(HttpResponse response, HttpContext context) {
		RequestMeta requestMeta = (RequestMeta)context.getAttribute(ContextOps.CTX_AGENT_REQUEST_META);
		int statusCode = response.getStatusLine().getStatusCode();
		if(requestMeta.proxyUsed() && response.getFirstHeader(ChloeHttpRequestExecutor.proxyErrorResponseHeader) != null) {
			return false;
		}
		if(statusCode == HttpStatusCode.SC_OK) {
			if(requestMeta.isForceProxyReAuth()) {
				requestMeta.setForceProxyReAuth(false);
				return false;
			}
		}
		return !HttpStatusCode.isBackoffCode(statusCode) && super.keepAlive(response, context);
	}
@ Override public boolean keepAlive ( HttpResponse response , HttpContext context ) { RequestMeta requestMeta = ( RequestMeta ) context . getAttribute ( ContextOps . CTX_AGENT_REQUEST_META ) ; int statusCode = response . getStatusLine ( ) . getStatusCode ( ) ; if ( requestMeta . proxyUsed ( ) && response . getFirstHeader ( ChloeHttpRequestExecutor . proxyErrorResponseHeader ) != null ) { return false ; } if ( statusCode == HttpStatusCode . SC_OK ) { if ( requestMeta . isForceProxyReAuth ( ) ) { requestMeta . setForceProxyReAuth ( false ) ; return false ; } } return ! HttpStatusCode . isBackoffCode ( statusCode ) && super . keepAlive ( response , context ) ; }
If a proxied request was executed and IP response headers were received ({@link RequestMeta#forceProxyReAuth} will be {@code true}) from
 {@link com.findupon.commons.netops.ChloeHttpRequestExecutor#doReceiveResponse(HttpRequest, HttpClientConnection, HttpContext)}),
 do not persist the connection, forcing re-auth to the proxy where we can safely set our new request headers.
If a proxied request was executed and IP response headers were received ( { @link RequestMeta#forceProxyReAuth } will be { @code true } ) from { @link com . findupon . commons . netops . ChloeHttpRequestExecutor#doReceiveResponse ( HttpRequest HttpClientConnection HttpContext ) } ) do not persist the connection forcing re - auth to the proxy where we can safely set our new request headers .