mirror of
https://github.com/rclone/rclone.git
synced 2025-01-03 04:49:47 +01:00
vfs: disable --buffer-size read ahead
See: https://forum.rclone.org/t/for-mount-sftp-why-right-click-on-exe-file-is-so-slow-until-it-freezes/33830/52
This commit is contained in:
parent
a61d219bcd
commit
b7cba2835d
@ -288,7 +288,10 @@ func (dls *Downloaders) _ensureDownloader(r ranges.Range) (err error) {
|
||||
// defer log.Trace(dls.src, "r=%v", r)("err=%v", &err)
|
||||
|
||||
// The window includes potentially unread data in the buffer
|
||||
window := int64(fs.GetConfig(context.TODO()).BufferSize)
|
||||
//window := int64(fs.GetConfig(context.TODO()).BufferSize)
|
||||
|
||||
// FIXME test disable --buffer-size window
|
||||
window := int64(0)
|
||||
|
||||
// Increase the read range by the read ahead if set
|
||||
if dls.opt.ReadAhead > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user