Skip to content

Commit b974b7d

Browse files
authored
Merge pull request #13985 from dramforever/master
2 parents 5bc9679 + 7295034 commit b974b7d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/libstore/include/nix/store/filetransfer.hh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)