We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
common中的http连接池初始化逻辑有问题,日志中持续输出(Initialize the PoolingHttpClientConnectionManager -- maxTotal:100, defaultMaxPerRoute:50)
以下条件在代码中不成立,导致反复初始化: `public CloseableHttpClient getHttpClient() { if (null != httpClient) { return httpClient; } if (null == configStorage) { return httpClient = HttpClients.createDefault(); }
CloseableHttpClient httpClient = HttpClients .custom() //网络提供者 .setDefaultCredentialsProvider(createCredentialsProvider(configStorage)) .setConnectionManager(connectionManager(configStorage)) //设置httpclient的SSLSocketFactory .setSSLSocketFactory(createSSL(configStorage)) .setDefaultRequestConfig(createRequestConfig(configStorage)) .build(); if (null == connectionManager) { return this.httpClient = httpClient; } return httpClient; }`
对connectionManager判断为null才更新client并返回的逻辑请确认是否存在问题
The text was updated successfully, but these errors were encountered:
No branches or pull requests
common中的http连接池初始化逻辑有问题,日志中持续输出(Initialize the PoolingHttpClientConnectionManager -- maxTotal:100, defaultMaxPerRoute:50)
以下条件在代码中不成立,导致反复初始化:
`public CloseableHttpClient getHttpClient() {
if (null != httpClient) {
return httpClient;
}
if (null == configStorage) {
return httpClient = HttpClients.createDefault();
}
对connectionManager判断为null才更新client并返回的逻辑请确认是否存在问题
The text was updated successfully, but these errors were encountered: