Fetch icon indicating copy to clipboard operation
Fetch copied to clipboard

Parallel Download type causes to increase the network usage about five times more than what it is

Open imansdn opened this issue 2 years ago • 0 comments
trafficstars

recently users reported to us that the Application is consuming their data traffic excessively, after investigating and measuring it multiple times we found out this is causing due to this config:

 FetchConfiguration.Builder(context)
            .setDownloadConcurrentLimit(DOWNLOAD_CONCURRENT_LIMIT)
            .setProgressReportingInterval(PROGRESS_REPORTING_INTERVAL)
            .enableRetryOnNetworkGain(true)
            .setAutoRetryMaxAttempts(AUTO_RETRY_MAX_ATTEMPT)
            .enableAutoStart(true).setHttpDownloader(
                OkHttpDownloader(
                    okHttpClient,
                    Downloader.FileDownloaderType.PARALLEL
                )
            ).build()

Finally, I figured out that removing the Downloader.FileDownloaderType.PARALLEL from the okHttp config resolves the issue.

consuming the network data about 5 times more than the actual size is an important issue and I hope to see the fix in the next versions.

Cheers!

imansdn avatar Dec 03 '22 11:12 imansdn