Skip to content

Commit bef91a6

Browse files
committed
decrease connect-timeout to 5s
For people self-hosting caches that can be occasionally down, the default timeout is very long. This is annoying if you are trying to update your binary cache at the same time you are trying to update another machine. Same if cachix has one of its rare hiccups. We tested this value of 5s in srvos now for years and we like to travel around the world with shitty internet, so it should be still reasonable high.
1 parent 70dcd73 commit bef91a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct FileTransferSettings : Config
3030
{"binary-caches-parallel-connections"}};
3131

3232
Setting<unsigned long> connectTimeout{
33-
this, 0, "connect-timeout",
33+
this, 5, "connect-timeout",
3434
R"(
3535
The timeout (in seconds) for establishing connections in the
3636
binary cache substituter. It corresponds to `curl`’s

0 commit comments

Comments
 (0)