rclone/vfs/vfscache
Nick Craig-Wood 4d7f91309b vfs: fix download threads timing out
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
2020-08-06 17:26:18 +01:00
..
downloaders vfs: fix download threads timing out 2020-08-06 17:26:18 +01:00
writeback vfs cache: make logging consistent and remove some debug logging 2020-07-06 17:32:53 +01:00
cache_test.go vfs: Add recovered items on cache reload to directory listings 2020-06-30 12:03:39 +01:00
cache.go vfs cache: make logging consistent and remove some debug logging 2020-07-06 17:32:53 +01:00
item_test.go vfs: Add recovered items on cache reload to directory listings 2020-06-30 12:03:39 +01:00
item.go vfs cache: make logging consistent and remove some debug logging 2020-07-06 17:32:53 +01:00