From a2d6a69d45d83cc44126b61b8926882cf63edcac Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Sat, 22 Nov 2025 03:04:16 +0300 Subject: [PATCH] libstore: Reduce the default download-buffer-size down to 1 MiB Since the root cause (the lack of backpressure control) has been fixed in the previous commit we can revert the change from 8ffea0a018874e60584eabeb620ec3495873c30d and make the default size much smaller. --- src/libstore/include/nix/store/filetransfer.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstore/include/nix/store/filetransfer.hh b/src/libstore/include/nix/store/filetransfer.hh index 3862093db..76d036a78 100644 --- a/src/libstore/include/nix/store/filetransfer.hh +++ b/src/libstore/include/nix/store/filetransfer.hh @@ -70,12 +70,12 @@ struct FileTransferSettings : Config Setting downloadBufferSize{ this, - 64 * 1024 * 1024, + 1 * 1024 * 1024, "download-buffer-size", R"( The size of Nix's internal download buffer in bytes during `curl` transfers. If data is not processed quickly enough to exceed the size of this buffer, downloads may stall. - The default is 67108864 (64 MiB). + The default is 1048576 (1 MiB). )"}; };