Skip to content

Commit

Permalink
Increase the call timeout from 1 minute to 3 minutes. Since on slow b…
Browse files Browse the repository at this point in the history
…andwidth it cancel the previous ongoing request after 1 minute and retry again which increased the library load time.
  • Loading branch information
MohitMaliDeveloper committed Sep 18, 2024
1 parent 93fad4d commit 098deb1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ import javax.inject.Singleton

const val CONNECTION_TIMEOUT = 10L

// increase the read timeout since the content is 19MB large so it takes
// increase the read and call 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 CALL_TIMEOUT = 180L
const val USER_AGENT = "kiwix-android-version:${BuildConfig.VERSION_CODE}"
const val KIWIX_DOWNLOAD_URL = "https://mirror.download.kiwix.org/"

Expand Down

0 comments on commit 098deb1

Please sign in to comment.