From 080c2f625317d7e20a8a5841db3d261c07ad7eb6 Mon Sep 17 00:00:00 2001 From: Andrea Selva Date: Tue, 21 Jun 2022 15:01:08 +0200 Subject: [PATCH] Increase Gradle network timeouts to increment resiliency on network issues (#14283) When an external repository reaches IO error or generates network timeouts the build fails in resolving external dependencies (plugins or libraries used by the project). This commits increase a little bit those limits. --- gradle.properties | 5 +++++ logstash-core/gradle.properties | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 5e0fa8494..9a8e756f6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,7 @@ org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8 org.gradle.daemon=false + +## from default 30 secs to 2 minutes network timeouts +systemProp.org.gradle.internal.http.connectionTimeout=120000 +systemProp.org.gradle.internal.http.socketTimeout=120000 +systemProp.org.gradle.internal.http.idleConnectionTimeout=120000 diff --git a/logstash-core/gradle.properties b/logstash-core/gradle.properties index ee05cbf9c..b8589ab55 100644 --- a/logstash-core/gradle.properties +++ b/logstash-core/gradle.properties @@ -1,2 +1 @@ isDistributedArtifact=true -