Description
Describe the bug
I'm getting this warning during substitution and/or remote builds.
These machines have gigabit connections.
I'd need buffers of hundreds of megabytes to avoid this warning when the store paths are big.
(Now imagine a well connected small machine without swap)
Steps To Reproduce
nix-build -A nixosTests.nixos-rebuild-target-host
after a GC or on a fresh "generation" of Nixpkgs
Expected behavior
When the download buffer is full, continue downloading at the rate of the consumer, and don't complain about it.
Limit the buffer size to avoid jittery consumption, which is known to cause connections to drop when the pauses are too long.
I've already outlined this as a better solution in the PR that introduced this problem,
nix-env --version
output
Additional context
Priorities
Add 👍 to issues you find important.