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

下载超时,断点续传的问题 #36

Open
lingling7007 opened this issue Aug 15, 2022 · 0 comments
Open

下载超时,断点续传的问题 #36

lingling7007 opened this issue Aug 15, 2022 · 0 comments

Comments

@lingling7007
Copy link

正常流程:例如文件大小为100, SendWebRequest请求文件数据=>ReceiveData写入接收到的数据=>发送下载成功事件
/// BUG流程:例如文件大小为100,SendWebRequest请求文件数据=>ReceiveData写入接收到的数据=>例如写入到50的时候程序发生堵塞导致进程下载超时=>发送超时失败事件,下载失败=>堵塞恢复后会继续把剩下的50写入到文件,这时候文件写入成功100,正常应该发送事件下载完成,但是由于导致超时重新下载,SendWebRequest请求文件数据,由于本地已经存在了100,断点续传的起始位置为100,但是这时候仍然接收到了ReceiveData的数据,比如这时候收到20,实际文件就会有120比源文件大20.
这种情况是因为设置超时时间太短导致的吗?恳请大佬帮忙解惑,不胜感激。

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