diff --git a/lib/foreman/engine.rb b/lib/foreman/engine.rb index 9de49345..0019e354 100644 --- a/lib/foreman/engine.rb +++ b/lib/foreman/engine.rb @@ -419,7 +419,7 @@ def handle_io_interactive(reader) indent = prefix(name).gsub(ANSI_TOKEN, "").length loop do - @buffers[reader].write(reader.read_nonblock(10)) + @buffers[reader].write(reader.read_nonblock(4096)) @buffers[reader].each_token do |token| case token @@ -450,7 +450,7 @@ def handle_io_interactive(reader) end def handle_io_noninteractive(reader) - @buffers[reader].write(reader.read_nonblock(10)) + @buffers[reader].write(reader.read_nonblock(4096)) while line = @buffers[reader].gets output_with_mutex name_for(@readers.invert[reader]), line end