Skip to content

Commit

Permalink
Merge pull request #85 from cryptohopper/development
Browse files Browse the repository at this point in the history
Okhttp Timeout request time increased
  • Loading branch information
canerten authored Jun 1, 2023
2 parents 246b246 + 03410b9 commit 7666bba
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import okhttp3.ConnectionSpec
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody.Companion.toRequestBody
import java.util.concurrent.TimeUnit


open class HopperAPIRequest<Object> {
Expand All @@ -42,6 +43,9 @@ open class HopperAPIRequest<Object> {
ConnectionSpec.COMPATIBLE_TLS
)
)
.connectTimeout(100, TimeUnit.SECONDS)
.writeTimeout(100, TimeUnit.SECONDS)
.readTimeout(100, TimeUnit.SECONDS)
.build()

var httpHeaders: MutableMap<String, String>? = null
Expand Down

0 comments on commit 7666bba

Please sign in to comment.