Merge pull request #1858 from lbryio/fix-blob-sendfile
Fix blob sendfile
This commit is contained in:
commit
8e607fcc2a
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class BlobFile:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
with open(self.file_path, 'rb') as handle:
|
with open(self.file_path, 'rb') as handle:
|
||||||
return await self.loop.sendfile(writer.transport, handle)
|
return await self.loop.sendfile(writer.transport, handle, count=self.get_length())
|
||||||
|
|
||||||
async def close(self):
|
async def close(self):
|
||||||
while self.writers:
|
while self.writers:
|
||||||
|
|
Loading…
Add table
Reference in a new issue