1
0
mirror of https://github.com/lutris/lutris synced 2024-07-08 19:45:47 +00:00

Try out a bigger chunk size for the downloads

This commit is contained in:
Mathieu Comandon 2024-03-07 23:09:25 -08:00
parent 084b8018d9
commit e2d68ca3b9

View File

@ -138,7 +138,7 @@ class Downloader:
response.raise_for_status()
self.full_size = int(response.headers.get("Content-Length", "").strip() or 0)
self.progress_event.set()
for chunk in response.iter_content(chunk_size=1024):
for chunk in response.iter_content(chunk_size=8192):
if not self.file_pointer:
break
if chunk: