diff --git a/core/src/main/java/org/kiwix/kiwixmobile/core/di/modules/NetworkModule.kt b/core/src/main/java/org/kiwix/kiwixmobile/core/di/modules/NetworkModule.kt index aafb0e93c..e849b0885 100644 --- a/core/src/main/java/org/kiwix/kiwixmobile/core/di/modules/NetworkModule.kt +++ b/core/src/main/java/org/kiwix/kiwixmobile/core/di/modules/NetworkModule.kt @@ -31,7 +31,11 @@ import java.util.concurrent.TimeUnit.SECONDS import javax.inject.Singleton const val CONNECTION_TIMEOUT = 10L -const val READ_TIMEOUT = 60L + +// increase the read timeout since the content is 19MB large so it takes +// more time to read on slow internet connection, and due to less read timeout +// the request is canceled. +const val READ_TIMEOUT = 180L const val CALL_TIMEOUT = 60L const val USER_AGENT = "kiwix-android-version:${BuildConfig.VERSION_CODE}" const val KIWIX_DOWNLOAD_URL = "https://mirror.download.kiwix.org/"