Skip to content

Commit

Permalink
Increase timeout for connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirelon committed Jan 28, 2024
1 parent e3b8b97 commit a3494c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ android {
applicationId "com.sirelon.marsroverphotos"
minSdkVersion 21
targetSdkVersion 34
versionCode 43
versionName "2.5.0"
versionCode 45
versionName "2.5.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.release
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ class RestApi {
install(ContentNegotiation) {
json(json)
}

install(HttpTimeout) {
val timeout = TimeUnit.MINUTES.toMillis(2)
connectTimeoutMillis = timeout
requestTimeoutMillis = timeout
socketTimeoutMillis = timeout
}
}

Expand Down

0 comments on commit a3494c3

Please sign in to comment.