diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-09-26 21:43:17 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-09-26 21:47:34 +0200 |
commit | 97504300032c7c57388d68bbe4a05b0a494e81aa (patch) | |
tree | cbcac44f1a62c8764c484e1c9caf6cd52954c768 /src/nix-build/nix-build.cc | |
parent | 98b2cc2e6e63bfa49b8f75169a39b751b3e2c32c (diff) |
Ensure download thread liveness
* Don't wait forever for the client to remove data from the
buffer. This does mean that the buffer can grow without bounds
(e.g. when downloading is faster than writing to disk), but meh.
* Don't hold the state lock while calling the sink. The sink could
take any amount of time to process the data (in particular when it's
actually a coroutine), so we don't want to block the download
thread.
Diffstat (limited to 'src/nix-build/nix-build.cc')
0 files changed, 0 insertions, 0 deletions