mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 00:43:49 +01:00
4d7f91309b
Before this fix, download threads would fill up the buffer and then timeout even though data was still being read from them. If the client was streaming slower than network speed this caused the downloader to stop and be restarted continuously. This caused more potential for skips in the download and unecessary network transactions. This patch fixes that behaviour - as long as a downloader is being read from more often than once every 5 seconds, it won't timeout. This was done by: - kicking the downloader whenever ensureDownloader is called - making the downloader loop if it has already downloaded past the maxOffset - making setRange() always kick the downloader |
||
---|---|---|
.. | ||
downloaders | ||
writeback | ||
cache_test.go | ||
cache.go | ||
item_test.go | ||
item.go |