Skip to content

Commit

Permalink
Warn if the download buffer is full
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jul 24, 2024
1 parent 8ffea0a commit f6a9a71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstore/filetransfer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,8 @@ void FileTransfer::download(
sender.) */
if (state->data.size() > fileTransferSettings.downloadBufferSize) {
debug("download buffer is full; going to sleep");
static bool haveWarned = false;
warnOnce(haveWarned, "download buffer is full; consider increasing the 'download-buffer-size' setting");
state.wait_for(state->request, std::chrono::seconds(10));
}

Expand Down

0 comments on commit f6a9a71

Please sign in to comment.