Skip to content
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

conf: stalled-download-timeout: make tunable #3031

Merged
merged 1 commit into from Aug 8, 2019

Conversation

grahamc
Copy link
Member

@grahamc grahamc commented Aug 7, 2019

Make the low speed limit configurable. Before, this limit was five minutes without
receiving a single byte. This is much too long as if the remote end may not have even
acknowledged the HTTP request.

@edolstra
Copy link
Member

edolstra commented Aug 7, 2019

If the default is too high, maybe we should just lower it? Adding configuration options seems like a bad solution in general because it requires the user to work around Nix problems.

@grahamc
Copy link
Member Author

grahamc commented Aug 7, 2019

In this case I'm not sure it is a Nix problem they're working around, but a problem in their network or a problem with their infrastructure. I'm not opposed to it just being lowered, but I don't know what it should be lowered to -- that is why I made it tunable. That said, If there is a good number which would make sense and not be so bad -- I'm not opposed to it being lowered without a tunable.

@@ -468,6 +468,14 @@ builtins.fetchurl {
this option to <literal>true</literal>.</para></listitem>
</varlistentry>

<varlistentry xml:id="conf-low-speed-limit"><term><literal>low-speed-limit</literal></term>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe change this to something like stalled-download-timeout? low-speed-limit is pretty vague (it's not even clear what speed it refers to).

@edolstra
Copy link
Member

edolstra commented Aug 7, 2019

Okay, let's keep the option and change the default to something like 60?

Make curl's low speed limit configurable via stalled-download-timeout.
Before, this limit was five minutes without receiving a single byte.
This is much too long as if the remote end may not have even
acknowledged the HTTP request.
@grahamc
Copy link
Member Author

grahamc commented Aug 8, 2019

I renamed to stalled-download-timeout and updated the docs and what-not. A much better name :)

@grahamc grahamc changed the title conf: low-speed-limit: tunable conf: stalled-download-timeout: make tunable Aug 8, 2019
@edolstra edolstra merged commit 35ebae1 into NixOS:master Aug 8, 2019
@grahamc grahamc deleted the low-speed-limit branch August 8, 2019 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants