From dbcf7a02a08d9e3578039770c1d44c0cbed5b449 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 17 Apr 2018 08:55:49 +0200 Subject: [PATCH] lib/model: Increase the default pull limit (fixes #4883) Bumping the limit to 2 * the max block size (16 MiB) is a slight increase compared to previously. Nonetheless I think it's good to allow us to queue one request and have one on the way in, or conversely have one large block on the way in and be able to ask for smaller blocks from others at the same time. --- lib/model/rwfolder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/rwfolder.go b/lib/model/rwfolder.go index 0c69f851..a09ce90b 100644 --- a/lib/model/rwfolder.go +++ b/lib/model/rwfolder.go @@ -81,7 +81,7 @@ const ( const ( defaultCopiers = 2 defaultPullerPause = 60 * time.Second - defaultPullerPendingKiB = 8192 // must be larger than block size + defaultPullerPendingKiB = 2 * protocol.MaxBlockSize maxPullerIterations = 3 )