Revert "Chunk videoplayback response to avoid throttling"

This reverts commit 818cd2454d.
This commit is contained in:
Omar Roth
2019-07-01 10:45:09 -05:00
parent 0632a2d3c8
commit 041debcd93
3 changed files with 30 additions and 65 deletions

View File

@@ -656,7 +656,7 @@ def proxy_file(response, env)
end
# https://stackoverflow.com/a/44802810 <3
def copy_in_chunks(input, output, chunk_size = 8192)
def copy_in_chunks(input, output, chunk_size = 4096)
size = 1
while size > 0
size = IO.copy(input, output, chunk_size)