Fetch icon indicating copy to clipboard operation
Fetch copied to clipboard

setDownloadConcurrentLimit is not working

Open mrrohit1 opened this issue 4 years ago • 1 comments

   fun getGlobalFetchInstance(context : Context?) : Fetch?{
      return context?.let {
          FetchConfiguration.Builder(it)
              .setDownloadConcurrentLimit(2)
              .enableFileExistChecks(true)
              .enableHashCheck(true)
              .enableRetryOnNetworkGain(true)
              .setInternetAccessUrlCheck("https://www.google.com")
              .setAutoRetryMaxAttempts(3)
              .setGlobalNetworkType(NetworkType.ALL)
              .setHttpDownloader(OkHttpDownloader(OkHttpClient.Builder().build()))
              .build()
      }?.let { Fetch.getInstance(it) }
    }

I am using above configuration. But when i am adding more than two request it still starts downloading 3rd or 4th request

mrrohit1 avatar Feb 04 '21 14:02 mrrohit1

I have same issue. But with me sometimes happened and sometimes works fine Any idea to fix it?

W7orld avatar Feb 17 '21 20:02 W7orld