From 64c15ef94709d8ad15072335e6df0e096ea77cce Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Wed, 16 Mar 2016 14:14:45 +0100 Subject: [PATCH] Feature #4217: Decrease read chunks to 16KB --- src/sunstone/sunstone-server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/sunstone-server.rb b/src/sunstone/sunstone-server.rb index f32224dc8e..2399a55e84 100755 --- a/src/sunstone/sunstone-server.rb +++ b/src/sunstone/sunstone-server.rb @@ -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?