Increase socket timeout for reconciliation. Closes #3987 (#4068)

This commit is contained in:
Antonin Delpeuch 2021-10-16 09:08:56 +02:00 committed by GitHub
parent 6599aecdf5
commit 6960b7db66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,13 +62,13 @@ public class HttpClient {
// Create a connection manager with a custom socket timeout
PoolingHttpClientConnectionManager connManager = new PoolingHttpClientConnectionManager();
final SocketConfig socketConfig = SocketConfig.custom()
.setSoTimeout(10, TimeUnit.SECONDS)
.setSoTimeout(60, TimeUnit.SECONDS)
.build();
connManager.setDefaultSocketConfig(socketConfig);
defaultRequestConfig = RequestConfig.custom()
.setConnectTimeout(30, TimeUnit.SECONDS)
.setConnectionRequestTimeout(30, TimeUnit.SECONDS) // TODO: 60 seconds in some places in old code
.setConnectTimeout(60, TimeUnit.SECONDS)
.setConnectionRequestTimeout(60, TimeUnit.SECONDS)
.build();
httpClientBuilder = HttpClients.custom()