Open observerss opened 1 year ago
I think it was added assuming that on SEEK_CUR
, the offsets are small, and might be already cached in our buffer and that I wanted to reset the iterator as much as possible (not all webdav servers support ranges).
Feel free to propose a PR. 🙂
In stream.py, seek function is
when whence == 1 and offset > 0, the seek will read to the offset
to seek 1G later will read 1G content first, which is very inefficient If I comment out the if statement, the seek operation works too, it will create a new iterator, use Range header to fast locate the position