Skip to content

Commit

Permalink
chore: increase timeouts when resolving dependencies (CloudNetService…
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
derklaro authored Jul 15, 2022
1 parent 88d37ef commit 269729c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-extensions/src/main/kotlin/extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 269729c

Please sign in to comment.