From 2bce7cecfa115d37af0ce310a5afed117bb54f09 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 4 Feb 2019 16:43:11 -0500 Subject: [PATCH] fix sendfile on windows --- lbrynet/blob/blob_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/blob/blob_file.py b/lbrynet/blob/blob_file.py index 72c7c477a..ae610da9a 100644 --- a/lbrynet/blob/blob_file.py +++ b/lbrynet/blob/blob_file.py @@ -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: