Giter Club home page Giter Club logo

Comments (6)

yadayada avatar yadayada commented on August 19, 2024

Your upload may still be going on even if the percentage indicator stalls... albeit very slowly. Currently, the low-speed timeout is 60s with 0Bytes transferred.

Have you checked there is actually no transfer?

from acd_cli.

Issam2204 avatar Issam2204 commented on August 19, 2024

Thank you for your answer!

Now that you mention it, when I press CTRL + C I notice that the % changes: it is a bit higher than before. We can say that there is almost certainly a transfer.

The question becomes: why does it get graphically stuck when the transfer rate becomes very low (from being initially high)?

I have this idea, please tell me if you find it feasible: acd_cli could check the file size of an uploading file and when such a file is big (say 500 MB+) and when the transfer rate becomes too slow (say 10 KB/s -) it drops the current transfer, and it re-starts the upload.
Now, this could have many implications: what is a big file size? What is a slow rate transfer (for someone is 5 KB/s, for others 1MB/s)? Should acd_cli drop a transfer that reached 95% just because it's going slow?

When I'll have the next stuck file I'll make sure to check if acd_cli actually transfers data or not.

Thank you!

from acd_cli.

yadayada avatar yadayada commented on August 19, 2024

why does it get graphically stuck when the transfer rate becomes very low
I haven't looked into how curl determines when/how often to trigger the progress callback.

Implementing a (static) minium upload rate as an argument would be trivial for curl.
But as it is I'm using two different libraries for uploading (curl) and everything else (requests) and I was planning on removing the curl dependency.

from acd_cli.

Issam2204 avatar Issam2204 commented on August 19, 2024

That's what I thought regarding the static minimum upload.

Thanks yadayada!

from acd_cli.

yadayada avatar yadayada commented on August 19, 2024

Does this still happen? The progress indicator should refresh every 0.3 seconds now.

If it still happens, could you try pressing the enter key? If it doesn't, please close the issue.

from acd_cli.

Issam2204 avatar Issam2204 commented on August 19, 2024

I tested it on 100 GB files. I'd like to make an another test with a faster network so to push at least 500GB.

I let you know tomorrow. Sorry for keeping this open.

EDIT: The issue looks like it has been resolved.

from acd_cli.

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.