mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 20:32:38 +09:00
Feature #4217: Decrease read chunks to 16KB
This commit is contained in:
1 parent
51d26b87fd
commit
64c15ef947
1 file changed
+2
-2
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user