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

Download reconnect #396

Closed
rharesh90 opened this issue Nov 14, 2016 · 2 comments
Closed

Download reconnect #396

rharesh90 opened this issue Nov 14, 2016 · 2 comments
Labels

Comments

@rharesh90
Copy link

Hello
I am using FileDownloader and it's working fine but when my network is disconnect after reconnect the network. i can't start download restart automatically please help me

@juziml
Copy link

juziml commented Nov 14, 2016

I'm very sorry, my English from youdao translation...
Hope the following solutions can help you
First set the cache, and confirm the background support breakpoint continuingly.The client has already begun to download task information, network has reopened after open a download task can be recorded.

@Jacksgong
Copy link
Collaborator

Jacksgong commented Nov 15, 2016

Thanks, @HarkBen , you are right, FileDownloader support resuming download from the breakpoint, and when you start a task, FileDownloader will resume the task from the last downloaded point automatically if the breakpoint is available and Etag not changed.


@rharesh90 Sorry, FileDownloader is a pure downloader engine, If you have such feature, you can handle it by your upper layer:

  1. You can have you own DownloadManager.
  2. If occur error callback with the network is disconnected, you reuse and store those tasks.
  3. When you receive the network changed broadcast with the network is reconnected, just start all tasks you stored.

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

No branches or pull requests

3 participants