Comments (6)
唯一标识是url
发自我的 iPhone
在 2015年11月24日,12:46,zwstyle [email protected] 写道:
—
Reply to this email directly or view it on GitHub.
from multithreaddownloader.
给我看你的下载地址
from multithreaddownloader.
from multithreaddownloader.
@AigeStudio 是这个下载链接的问题吗?
from multithreaddownloader.
目前发现单线程不会出现问题,多线程出现问题
from multithreaddownloader.
问题已经找到了,是因为有些服务器对发起的Range格式请求响应数据不一样,有一些服务器必须明确指定下载范围,并且下载范围不能大于文件大小,如果指定下载范围大于文件大小,则返回200,而不是206,目前阿里云的oss服务器就是这样返回的。
在DLTask类的dlDispatch方法中,在计算最后一个线程下载的大小时,多计算了一个字节,导致最后一个线程下载的数据不对,将 end = start + threadLength + remainder; 改为 end = start + threadLength + remainder - 1;便可以正常下载了。
from multithreaddownloader.
Related Issues (20)
- 提2个BUG HOT 1
- 下载Apk解析失败问题
- 建议已经下载过了加个回调
- 状态
- 下载文件与源不符,文件不完整 HOT 1
- 下载的线程有概率出现卡住的现象
- how can get status of download HOT 1
- DLException: Can not create file HOT 2
- 这个库支持http1.1协议吗?
- calculate download speed
- Can not download redirect links #bug HOT 1
- 下载apk的数据不对,每次安装时都提示解析出错
- Can't Download when http response code is 206
- 如何获取下载速度 HOT 4
- how to download m3u8 file
- getDLInfo() Get no data;获取不到数据
- 获取正在下载的列表
- 多线程下载时,我循环调用了dlStop和dlCancel方法但是下载没有停止
- 在不同的页面无法获取当前下载任务列表和进度
- 来这里,基于原作者修改的版本
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multithreaddownloader.