1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-24 11:19:35 +01:00

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
8ffea0a018 and make the default size much
smaller.
This commit is contained in:
Sergei Zimmerman 2025-11-22 03:04:16 +03:00
parent 4307420c44
commit a2d6a69d45
No known key found for this signature in database

View file

@ -70,12 +70,12 @@ struct FileTransferSettings : Config
Setting<size_t> downloadBufferSize{ Setting<size_t> downloadBufferSize{
this, this,
64 * 1024 * 1024, 1 * 1024 * 1024,
"download-buffer-size", "download-buffer-size",
R"( R"(
The size of Nix's internal download buffer in bytes during `curl` transfers. If data is 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. 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).
)"}; )"};
}; };