Merge pull request #1858 from lbryio/fix-blob-sendfile

Fix blob sendfile
This commit is contained in:
Jack Robison 2019-02-04 17:12:50 -05:00 committed by GitHub
commit 8e607fcc2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ class BlobFile:
"""
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):
while self.writers: