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:
parent
4307420c44
commit
a2d6a69d45
1 changed files with 2 additions and 2 deletions
|
|
@ -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).
|
||||||
)"};
|
)"};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue