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:
parent
26deb46219
commit
33bdf011b4
@ -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())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user