GithubHelp home page GithubHelp logo

Comments (10)

thibaultcha avatar thibaultcha commented on June 27, 2024

Thanks for the report. I am investigating on this. I see no reason but I'll tell you if I find anything.

from tcblobdownload.

igiu1988 avatar igiu1988 commented on June 27, 2024

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.

thibaultcha avatar thibaultcha commented on June 27, 2024

Yeah I understood that.

from tcblobdownload.

bradleydwyer avatar bradleydwyer commented on June 27, 2024

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.

thibaultcha avatar thibaultcha commented on June 27, 2024

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.

thibaultcha avatar thibaultcha commented on June 27, 2024

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.

bradleydwyer avatar bradleydwyer commented on June 27, 2024

Sure. I'll have a chance to test it tomorrow (in about 28 hours from now).

from tcblobdownload.

bradleydwyer avatar bradleydwyer commented on June 27, 2024

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.

thibaultcha avatar thibaultcha commented on June 27, 2024

Alright, perfect then! I updated TCBlobDownload to 1.5.1 in cb6587a. Let me know in case anything goes wrong!

Thanks

from tcblobdownload.

bradleydwyer avatar bradleydwyer commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.