From f42f7ccf83b2f1e30dc40cf53ca334b22fdbbea8 Mon Sep 17 00:00:00 2001 From: Jinwoo Hwang Date: Thu, 18 Sep 2025 13:18:51 -0400 Subject: [PATCH] GEODE-10464: Add Gradle network timeout and retry configuration - Increase connection timeout from 30s to 60s - Extend socket read timeout from 30s to 120s - Add retry mechanism with 5 attempts and 5s delay between retries - Fixes intermittent build failures due to network timeouts during dependency resolution from external repositories --- gradle/wrapper/gradle-wrapper.properties | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 3c4101c3ec4..b7cac686ef9 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,3 +3,13 @@ distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists +# --- Gradle network tuning --- +# Connection timeout (default ~30s) +systemProp.org.gradle.internal.http.connectionTimeout=60000 + +# Socket timeout (read timeout, default ~30s) +systemProp.org.gradle.internal.http.socketTimeout=120000 + +# Retry failed requests +systemProp.org.gradle.internal.repository.max.retries=5 +systemProp.org.gradle.internal.repository.retry.delay=5000 \ No newline at end of file