Update dependency io.github.hakky54:sslcontext-kickstart-for-apache5 to v8.3.7

Update dependency org.apache.httpcomponents.client5:httpclient5 to v5.4
This commit is contained in:
Athou
2024-09-22 09:07:20 +02:00
parent e2e80ba7e5
commit 21efffa345
2 changed files with 3 additions and 3 deletions

View File

@@ -450,7 +450,7 @@
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.3.1</version>
<version>5.4</version>
</dependency>
<!-- add brotli support for httpclient5 -->
<dependency>
@@ -461,7 +461,7 @@
<dependency>
<groupId>io.github.hakky54</groupId>
<artifactId>sslcontext-kickstart-for-apache5</artifactId>
<version>8.3.6</version>
<version>8.3.7</version>
</dependency>
<!-- test dependencies -->

View File

@@ -176,7 +176,7 @@ public class HttpGetter {
int poolSize = config.feedRefresh().httpThreads();
return PoolingHttpClientConnectionManagerBuilder.create()
.setSSLSocketFactory(Apache5SslUtils.toSocketFactory(sslFactory))
.setTlsSocketStrategy(Apache5SslUtils.toTlsSocketStrategy(sslFactory))
.setDefaultConnectionConfig(ConnectionConfig.custom()
.setConnectTimeout(Timeout.of(config.httpClient().connectTimeout()))
.setSocketTimeout(Timeout.of(config.httpClient().socketTimeout()))