Skip to content

Commit

Permalink
use normal buffer sizes now that we're sure partial reads are working
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Aug 4, 2024
1 parent 43d1a51 commit 9ee0820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/foreman/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9ee0820

Please sign in to comment.