Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Reduce timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed May 23, 2023
1 parent 637ae98 commit df8380f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ object Requests {
val netLazyMgr = resettableManager()
val client by resettableLazy(netLazyMgr) {
OkHttpClient.Builder()
.connectTimeout(25, TimeUnit.SECONDS)
.readTimeout(50, TimeUnit.SECONDS)
.writeTimeout(50, TimeUnit.SECONDS)
.connectTimeout(10, TimeUnit.SECONDS)
.readTimeout(15, TimeUnit.SECONDS)
.writeTimeout(15, TimeUnit.SECONDS)
.cookieJar(CookieJarImpl)
.build()
}
Expand Down

0 comments on commit df8380f

Please sign in to comment.