Rev3225, Handle correctly and test out of range bigfile requests
This commit is contained in:
parent
9c4093dc7c
commit
3fb9f900f6
3 changed files with 12 additions and 2 deletions
|
@ -426,7 +426,7 @@ class BigFile(object):
|
|||
|
||||
def read(self, buff=64 * 1024):
|
||||
pos = self.f.tell()
|
||||
read_until = pos + buff
|
||||
read_until = min(self.size, pos + buff)
|
||||
requests = []
|
||||
# Request all required blocks
|
||||
while 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue