fix sendfile on windows

This commit is contained in:
Jack Robison 2019-02-04 16:43:11 -05:00
parent e141cc9e22
commit 2bce7cecfa
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

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: