Skip to content

Commit

Permalink
fix(playout): increase file download chunk size to 8192 bytes (#2863)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jan 1, 2024
1 parent 0ce63f3 commit 7ed1be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playout/libretime_playout/player/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def copy_file(self, file_event: FileEvent):
with file_event.local_filepath.open("wb") as file_fd:
try:
response = self.api_client.download_file(file_event.id, stream=True)
for chunk in response.iter_content(chunk_size=2048):
for chunk in response.iter_content(chunk_size=8192):
file_fd.write(chunk)

except requests.exceptions.HTTPError as exception:
Expand Down

0 comments on commit 7ed1be1

Please sign in to comment.