Warn if the download buffer is full

(cherry picked from commit f6a9a71b38)
This commit is contained in:
Eelco Dolstra 2024-07-24 20:14:31 +02:00 committed by github-actions[bot]
parent 56140d974e
commit 682f60b4f7

View File

@ -837,6 +837,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));
}