-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http.Client timeout. #36
Comments
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. |
Okay then. I'll set global timeout in my script, given that I know how long update usually takes.
|
@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 |
@Apfelwurm I've meant something like https://www.man7.org/linux/man-pages/man1/timeout.1.html |
well, some things can be so simple :'D Thank you very much! |
Please set reasonable timeout for http.Client. As for now fdroidcl may show
Downloading update...
without displaying any progress.The text was updated successfully, but these errors were encountered: