1
0
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:
Jaime Melis 2016-03-16 14:14:45 +01:00
parent 51d26b87fd
commit 64c15ef947

View File

@ -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?