From 269729ca23fb7a60682b6e3766852d6e300ee745 Mon Sep 17 00:00:00 2001 From: Pasqual Koschmieder Date: Fri, 15 Jul 2022 20:02:24 +0200 Subject: [PATCH] chore: increase timeouts when resolving dependencies (#722) ### Motivation Some builds are failing from time to time as the dependency resolution times out for some reason. ### Modification Increased the dependency resolve timeout from 5 seconds to 30 seconds to prevent timeouts. ### Result (Hopefully) less build failures because of connection/read timeouts. --- build-extensions/src/main/kotlin/extensions.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build-extensions/src/main/kotlin/extensions.kt b/build-extensions/src/main/kotlin/extensions.kt index e4bcac582e..bfe13255ce 100644 --- a/build-extensions/src/main/kotlin/extensions.kt +++ b/build-extensions/src/main/kotlin/extensions.kt @@ -118,8 +118,9 @@ private fun resolveRepository( val url = URL(it.url.toURL(), testUrlPath) with(url.openConnection() as HttpURLConnection) { useCaches = false - readTimeout = 5000 - connectTimeout = 5000 + readTimeout = 30000 + connectTimeout = 30000 + instanceFollowRedirects = true setRequestProperty( "User-Agent",