mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
Feature #4217: Decrease read chunks to 16KB
This commit is contained in:
parent
51d26b87fd
commit
64c15ef947
@ -742,8 +742,8 @@ get '/marketplaceapp/:id/download' do
|
||||
Open3.popen3(download_cmd) do |_,o,e,w|
|
||||
|
||||
until o.eof?
|
||||
# Read in chunks of 10MB
|
||||
out << o.read(10*1024*1024)
|
||||
# Read in chunks of 16KB
|
||||
out << o.read(16384)
|
||||
end
|
||||
|
||||
if !w.value.success?
|
||||
|
Loading…
x
Reference in New Issue
Block a user