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

新问题,关于自动重试 #92

Closed
ynlh opened this issue Apr 9, 2016 · 2 comments
Closed

新问题,关于自动重试 #92

ynlh opened this issue Apr 9, 2016 · 2 comments
Assignees
Labels

Comments

@ynlh
Copy link

ynlh commented Apr 9, 2016

测试发现,如果设置了自动重试(比如 3次),我进行如下操作: 下载一个文件,在进行了一段时间后,这时切到后天,主动关闭手机的网络(wifi),这是切回应用,会回调 error,这时我主动重新开始 调用下载,不是(task.start())而是: FileDownloader.getImpl().create(url).setPath(path).setCallbackProgressTimes(1000).setListener(mFileDownloadListener).start(); 因为这时还没有网络,所以会回调 retry 一次(只有一次),然后 error,这时主动去开启网络,继续重新开始下载,这时下载进度却从 0开始了,不管测试是 第一次回调 error之前重新联网还是 回调了error之后重新联网,都是这样的结果,断点续传失效了。
然后继续测试 建立下载的时候 不设置自动重试的次数,重试以上的过程,主动联网后,再次调用下载,可以断点续传,以前的下载进度存在。

@Jacksgong
Copy link
Collaborator

自动重试这个在 #91 已经修复了。

👍 恩,我看了下,这个断网以后,再重新下载,存在重试的时候,确实会导致sofar被覆盖,我已经找到原因了,一会儿处理下。

很感谢你的细心。

@Jacksgong Jacksgong added the bug label Apr 9, 2016
@Jacksgong Jacksgong self-assigned this Apr 9, 2016
@Jacksgong
Copy link
Collaborator

Has been fixed since v0.2.3.

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

2 participants