Feature #4217: Decrease read chunks to 16KB

This commit is contained in:
Jaime Melis committed 2016-03-16 14:43:25 +01:00
1 parent 51d26b87fd
commit 64c15ef947
1 file changed
+2 -2
+2 -2
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?