Increase default OkHttp call timeout to 2 minutes

Which is still stupidly high, but maybe it'll be lenient enough for certain people.

(cherry picked from commit cdd4ec623342de5894857f467bca2f2388b3f46d)
This commit is contained in:
arkon 2022-04-17 11:32:47 -04:00 committed by Jobobby04
parent 26deb46219
commit 33bdf011b4

View File

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