将请求等待超时时间由15s增加到60s (#4377)

This commit is contained in:
Sun-QAQ 2024-11-25 21:25:45 +08:00 committed by GitHub
parent 47d3c45449
commit 8b78b31218
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,9 +53,9 @@ val okHttpClient: OkHttpClient by lazy {
)
val builder = OkHttpClient.Builder()
.connectTimeout(15, TimeUnit.SECONDS)
.writeTimeout(15, TimeUnit.SECONDS)
.readTimeout(15, TimeUnit.SECONDS)
.connectTimeout(60, TimeUnit.SECONDS) //将请求等待超时时间由15s增加到60s
.writeTimeout(60, TimeUnit.SECONDS)
.readTimeout(60, TimeUnit.SECONDS)
.callTimeout(60, TimeUnit.SECONDS)
//.cookieJar(cookieJar = cookieJar)
.sslSocketFactory(SSLHelper.unsafeSSLSocketFactory, SSLHelper.unsafeTrustManager)