Comments (10)
Thanks for the report. I am investigating on this. I see no reason but I'll tell you if I find anything.
from tcblobdownload.
Later on that day, a friend told me comment the timer code in method
"start" in TCBlobDownloader.m, then the Download queue will process
normaly. But, both I and my friend dont understand why. Later, I will post
the code to you.
ÔÚ 2014-3-17 AM2:09£¬"Thibault" [email protected]дµÀ£º
Thanks for the report. I am investigating on this. I see no reason but
I'll tell you if I find anything.¡ª
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-37764870
.
from tcblobdownload.
Yeah I understood that.
from tcblobdownload.
I'm seeing this as well. It's not consistently the first download, but that's the highest probability.
I've been adding 5 items in a loop, and anywhere from 1 to all 5 of the items will be downloaded. Commenting out the speed timer appears to avoid the issue. In most cases, only one operation is invoked however.
At the time of the issue, I had the operation queue set to 1 concurrent operation. The start method is not invoked on subsequent operations.
Adding small delays to the invocation of the block syntax variant of
startDownloadWithURL
didn't change the behaviour (where the small delay was invoking it asynchronously on the main thread via GCD - in 5 separate blocks, or via a custom serial dispatch queue).
I haven't had a chance to dig into the code to see why removing the timer works, I'm on a bit of a deadline at the moment and I don't need the speed details right now.
from tcblobdownload.
Thank you, it helps. I've been digging two weeks ago but I'm not done, and I don't have time those days. This is bothering me, I will take a look at it again.
from tcblobdownload.
I just pushed a fix (3674251) after investigating this afternoon, seeing your issue, seeing that the concurrent downloads were broken etc... I tested it (the NSRunLoop timer thing is still there) and I can now download 50 video files concurrently without issues. I also tested it with 1000 downloads of the master.zip archive of this GitHub repository, one by one, no troubles. (each one in a separated file though, as the library requires)
Can you test it?
from tcblobdownload.
Sure. I'll have a chance to test it tomorrow (in about 28 hours from now).
from tcblobdownload.
So far so good. I've downloaded a couple of dozen items with 3 concurrent and it's been working without a problem.
from tcblobdownload.
Alright, perfect then! I updated TCBlobDownload to 1.5.1
in cb6587a. Let me know in case anything goes wrong!
Thanks
from tcblobdownload.
Will do. I'll switch across to using that version in a few minutes. It'll be getting a bit of testing from the team over the next day or so. Will let you know if anything pops up.
from tcblobdownload.
Related Issues (20)
- Enhancements
- Progress cannot recover when resume from previous task HOT 3
- Can not multi download and direct link HOT 2
- Bug found in connection:didReceiveResponse: HOT 1
- self.file seekToEndOfFile Exception HOT 1
- Download gzip file error
- TCBlobDownload--updating handlers/delegates HOT 1
- Handle fail to Download HOT 1
- I want to customize the downloaded file name, how should I do
- Error status Code 416 HOT 3
- Download in the background process HOT 3
- Google Drive Download URL
- how to remove download part file?
- request time out
- iOS 10 - crash in start method HOT 1
- download speed is 0
- CRASH after cancel HOT 1
- Download filename issue HOT 1
- Does not work with iOS 11.3 HOT 2
- The lack of function HOT 1
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 tcblobdownload.