File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/libstore/include/nix/store Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,17 @@ struct FileTransferSettings : Config
3131 )" ,
3232 {" binary-caches-parallel-connections" }};
3333
34+ /* Do not set this too low. On glibc, getaddrinfo() contains fallback code
35+ paths that deal with ill-behaved DNS servers. Setting this too low
36+ prevents some fallbacks from occurring.
37+
38+ See description of options timeout, single-request, single-request-reopen
39+ in resolv.conf(5). Also see https://github.com/NixOS/nix/pull/13985 for
40+ details on the interaction between getaddrinfo(3) behavior and libcurl
41+ CURLOPT_CONNECTTIMEOUT. */
3442 Setting<unsigned long > connectTimeout{
3543 this ,
36- 5 ,
44+ 15 ,
3745 " connect-timeout" ,
3846 R"(
3947 The timeout (in seconds) for establishing connections in the
You can’t perform that action at this time.
0 commit comments