Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
imansdn opened this issue Dec 3, 2022 · 0 comments

Comments

@imansdn
Copy link

imansdn commented Dec 3, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant