From 9ee0820be0a059b6d7ad64a5a23d5b9953a234a1 Mon Sep 17 00:00:00 2001 From: David Dollar Date: Sun, 4 Aug 2024 00:02:07 -0400 Subject: [PATCH] use normal buffer sizes now that we're sure partial reads are working --- lib/foreman/engine.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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