Set network call timeout to 90 seconds (instead of infinite)

(cherry picked from commit 7a0b54bb3822bef3423a68c4e3512e2838ce11b1)
This commit is contained in:
arkon 2022-04-15 09:56:35 -04:00 committed by Jobobby04
parent 2bd161d5a2
commit 2d9cd81b62

View File

@ -30,6 +30,7 @@ open /* SY <-- */ class NetworkHelper(context: Context) {
.cookieJar(cookieManager)
.connectTimeout(30, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS)
.callTimeout(90, TimeUnit.SECONDS)
// .fastFallback(true) // TODO: re-enable when OkHttp 5 is stabler
.addInterceptor(UserAgentInterceptor())