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.
This commit is contained in:
Jakob Borg 2018-04-17 08:55:49 +02:00 committed by Audrius Butkevicius
parent 7be53bbb88
commit dbcf7a02a0

View File

@ -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
)