mirror of
https://github.com/gedoor/legado.git
synced 2025-01-08 11:47:32 +08:00
将请求等待超时时间由15s增加到60s (#4377)
This commit is contained in:
parent
47d3c45449
commit
8b78b31218
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user