allowPoolingConnections = prototype.isAllowPoolingConnections(); providerConfig = prototype.getAsyncHttpProviderConfig(); connectTimeout = prototype.getConnectTimeout(); ioThreadMultiplier = prototype.getIoThreadMultiplier(); maxRequestRetry = prototype.getMaxRequestRetry(); allowPoolingSslConnections = prototype.isAllowPoolingConnections(); hostnameVerifier = prototype.getHostnameVerifier(); strict302Handling = prototype.isStrict302Handling();
public static String keepAliveHeaderValue(AsyncHttpClientConfig config) { return config.isAllowPoolingConnections() ? "keep-alive" : "close"; }
if (channelPool == null && config.isAllowPoolingConnections()) { channelPool = new DefaultChannelPool(config, nettyTimer); } else if (channelPool == null) {
boolean connect = method == HttpMethod.CONNECT; boolean allowConnectionPooling = config.isAllowPoolingConnections() && (!isSecure(uri) || config.isAllowPoolingSslConnections());
private void verifyDefaultUnderlyingClientConfig(AsyncHttpClientHelper instance) { AsyncHttpClientConfig config = instance.asyncHttpClient.getConfig(); assertThat(config.isAllowPoolingConnections()).isTrue(); assertThat(config.getMaxRequestRetry()).isEqualTo(0); assertThat(config.getRequestTimeout()).isEqualTo(DEFAULT_REQUEST_TIMEOUT_MILLIS); assertThat(config.getConnectionTTL()).isEqualTo(DEFAULT_POOLED_DOWNSTREAM_CONNECTION_TTL_MILLIS); assertThat(Whitebox.getInternalState(instance.asyncHttpClient, "signatureCalculator")).isNull(); }
this.poolingEnabled = config.isAllowPoolingConnections(); this.poolingSSLConnections = config.isAllowPoolingSslConnections();
log.debug("pooled connection TTL: {}", config.getConnectionTTL()); log.debug("pooled connection idle timeout: {}", config.getPooledConnectionIdleTimeout()); log.debug("pooling connections: {}", config.isAllowPoolingConnections()); log.debug("pooling SSL connections: {}", config.isAllowPoolingSslConnections()); log.debug("user agent: {}", config.getUserAgent());
ConnectionManager(final GrizzlyAsyncHttpProvider provider, final TCPNIOTransport transport, final GrizzlyAsyncHttpProviderConfig providerConfig) { ConnectionPool connectionPool; this.provider = provider; final AsyncHttpClientConfig config = provider.clientConfig; if (config.isAllowPoolingConnections()) { ConnectionPool pool = providerConfig != null ? providerConfig.getConnectionPool() : null; if (pool != null) { connectionPool = pool; } else { connectionPool = new GrizzlyConnectionPool((config)); } } else { connectionPool = new NonCachingPool(); } pool = connectionPool; connectionHandler = TCPNIOConnectorHandler.builder(transport).build(); final int maxConns = provider.clientConfig.getMaxConnections(); connectionMonitor = new ConnectionMonitor(maxConns); }
allowPoolingConnections = prototype.isAllowPoolingConnections(); providerConfig = prototype.getAsyncHttpProviderConfig(); connectionTimeout = prototype.getConnectionTimeout(); ioThreadMultiplier = prototype.getIoThreadMultiplier(); maxRequestRetry = prototype.getMaxRequestRetry(); allowPoolingSslConnections = prototype.isAllowPoolingConnections(); removeQueryParamOnRedirect = prototype.isRemoveQueryParamOnRedirect(); hostnameVerifier = prototype.getHostnameVerifier();
allowPoolingConnections = prototype.isAllowPoolingConnections(); providerConfig = prototype.getAsyncHttpProviderConfig(); connectTimeout = prototype.getConnectTimeout(); ioThreadMultiplier = prototype.getIoThreadMultiplier(); maxRequestRetry = prototype.getMaxRequestRetry(); allowPoolingSslConnections = prototype.isAllowPoolingConnections(); hostnameVerifier = prototype.getHostnameVerifier(); strict302Handling = prototype.isStrict302Handling();
allowPoolingConnections = prototype.isAllowPoolingConnections(); providerConfig = prototype.getAsyncHttpProviderConfig(); connectTimeout = prototype.getConnectTimeout(); ioThreadMultiplier = prototype.getIoThreadMultiplier(); maxRequestRetry = prototype.getMaxRequestRetry(); allowPoolingSslConnections = prototype.isAllowPoolingConnections(); hostnameVerifier = prototype.getHostnameVerifier(); strict302Handling = prototype.isStrict302Handling();
if (channelPool == null && config.isAllowPoolingConnections()) { channelPool = new DefaultChannelPool(config, nettyTimer); } else if (channelPool == null) {
this.poolingEnabled = config.isAllowPoolingConnections(); this.poolingSSLConnections = config.isAllowPoolingSslConnections();
this.poolingEnabled = config.isAllowPoolingConnections(); this.poolingSSLConnections = config.isAllowPoolingSslConnections();