as john arbash meinel points out, this assert wasn't validating internal consistency, because a readv() request may ask for more data than is left in the file. so remove the assert.
This commit is contained in:
parent
c570f1a35a
commit
c1e3e85353
|
@ -464,7 +464,6 @@ class SFTPFile (BufferedFile):
|
|||
raise SFTPError('Expected data')
|
||||
data = msg.get_string()
|
||||
offset, length = self._prefetch_reads.pop(0)
|
||||
assert length == len(data)
|
||||
self._prefetch_data[offset] = data
|
||||
if len(self._prefetch_reads) == 0:
|
||||
self._prefetch_done = True
|
||||
|
|
Loading…
Reference in New Issue