This commit is contained in:
Joey Hess 2020-09-01 16:00:49 -04:00
parent 955f309cd5
commit 4bcfd56902
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -0,0 +1,10 @@
The forwardRetry RetryDecider keeps retrying a transfer as long as at least
one more byte got transferred than in the previous, failed try.
Suppose that a transfer was restarting from the beginning each time, and it
just so happened that each try got a tiny little bit further before
failing. Then transferring an `N` byte object could result in `sum [1..N]`
bytes being sent. Worst case.
So I think forwardRetry should cap after some amount of automatic retrying.
Ie, it could give up after 5 retries. --[[Joey]]