From 30b86e530b5e44c95415beaba5ec2747a73a66be Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 31 Aug 2022 16:51:33 -0400 Subject: [PATCH] Bump OkHttp and re-enable fast fallback It wasn't very stable last time, but we'll see how it goes in preview builds. --- app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt | 2 +- gradle/libs.versions.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt b/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt index f106b3b7f..4141249c1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt @@ -32,7 +32,7 @@ class NetworkHelper(context: Context) { .connectTimeout(30, TimeUnit.SECONDS) .readTimeout(30, TimeUnit.SECONDS) .callTimeout(2, TimeUnit.MINUTES) - // .fastFallback(true) // TODO: re-enable when OkHttp 5 is stabler + .fastFallback(true) .addInterceptor(userAgentInterceptor) .addNetworkInterceptor(http103Interceptor) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 23eb73f5d..fd28dd24e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] aboutlib_version = "10.4.0" -okhttp_version = "4.10.0" +okhttp_version = "5.0.0-alpha.10" nucleus_version = "3.0.0" coil_version = "2.2.0" conductor_version = "3.1.7"