mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Merge pull request #13985 from dramforever/master
This commit is contained in:
commit
b974b7dc1e
1 changed files with 9 additions and 1 deletions
|
|
@ -31,9 +31,17 @@ struct FileTransferSettings : Config
|
||||||
)",
|
)",
|
||||||
{"binary-caches-parallel-connections"}};
|
{"binary-caches-parallel-connections"}};
|
||||||
|
|
||||||
|
/* Do not set this too low. On glibc, getaddrinfo() contains fallback code
|
||||||
|
paths that deal with ill-behaved DNS servers. Setting this too low
|
||||||
|
prevents some fallbacks from occurring.
|
||||||
|
|
||||||
|
See description of options timeout, single-request, single-request-reopen
|
||||||
|
in resolv.conf(5). Also see https://github.com/NixOS/nix/pull/13985 for
|
||||||
|
details on the interaction between getaddrinfo(3) behavior and libcurl
|
||||||
|
CURLOPT_CONNECTTIMEOUT. */
|
||||||
Setting<unsigned long> connectTimeout{
|
Setting<unsigned long> connectTimeout{
|
||||||
this,
|
this,
|
||||||
5,
|
15,
|
||||||
"connect-timeout",
|
"connect-timeout",
|
||||||
R"(
|
R"(
|
||||||
The timeout (in seconds) for establishing connections in the
|
The timeout (in seconds) for establishing connections in the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue