GithubHelp home page GithubHelp logo

Comments (4)

781flyingdutchman avatar 781flyingdutchman commented on August 11, 2024 1

Since you mentioned a slow Android 12 device I think it's likely that the OS cancels the task because it is trying to manage performance. If you Google around you'll see lots of examples of that, and there is nothing you can do except indeed chunking the upload.

from background_downloader.

781flyingdutchman avatar 781flyingdutchman commented on August 11, 2024

Two possible reasons:

  1. Upload is canceled by server (because it takes too long or is too slow)
  2. Upload is canceled by Android OS (especially on less-performant devices the Android OEM often implements aggressive background task management to improve perceived performance, and this includes unceremoniously canceling background tasks)

The second is most likely given how you describe the problem, and unfortunately there is nothing you can do about that. There is nothing in the logs that stands out.

from background_downloader.

Ansis100 avatar Ansis100 commented on August 11, 2024
1. Upload is canceled by server (because it takes too long or is too slow)

Don't think so. The DAV logs show errors mentioning incomplete downloads (i.e. expected x bytes, received y bytes), which probably means the client is terminating the connection too soon.

Does this mean that big file on slow devices are generally impossible to upload? Could this be solved by switching to the MemoryQueue?

If nothing can be done about this then we might need to think about chunking these kinds of slow uploads.

from background_downloader.

Ansis100 avatar Ansis100 commented on August 11, 2024

Alright, I'll look into that. Thanks for the info!

from background_downloader.

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.