GithubHelp home page GithubHelp logo

http.Client timeout. about fdroidcl HOT 5 CLOSED

sarg avatar sarg commented on May 14, 2024
http.Client timeout.

from fdroidcl.

Comments (5)

sarg avatar sarg commented on May 14, 2024 1

@Apfelwurm I've meant something like https://www.man7.org/linux/man-pages/man1/timeout.1.html
You could do timeout 10s fdroidcl update

from fdroidcl.

mvdan avatar mvdan commented on May 14, 2024

The default timeouts apply; see https://golang.org/pkg/net/http/#RoundTripper. For example, dialing stops after 30s, and the TLS handshake has 10s. There's no timeout on downloading the request body; otherwise, downloading a very large APK over a slow connection could error.

I agree that not reporting progress isn't ideal, but this is not an interactive tool. I think the underlying issue here is that f-droid.org can be very slow at times.

from fdroidcl.

sarg avatar sarg commented on May 14, 2024

Okay then. I'll set global timeout in my script, given that I know how long update usually takes.
I agree that main use for fdroidcl is in non-interactive scenarios. But if you'll implement progress display like wget does it'll be nice.

 70%[=======================>                    ] 615.76K   886KB/s

from fdroidcl.

Apfelwurm avatar Apfelwurm commented on May 14, 2024

@sarg how did you set the global timeout? I've searched many times now and didn't find anything that would not involve code changes

from fdroidcl.

Apfelwurm avatar Apfelwurm commented on May 14, 2024

well, some things can be so simple :'D Thank you very much!

from fdroidcl.

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.