From 4be6df9d0254e6cb34084de7591e869f42da08f5 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 31 Mar 2021 17:19:20 +1100 Subject: [PATCH] Parse more data at each fifo buffer read --- src/buffer_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc index 69cdb574..5dc53f65 100644 --- a/src/buffer_utils.cc +++ b/src/buffer_utils.cc @@ -157,7 +157,7 @@ Buffer* create_fifo_buffer(String name, int fd, Buffer::Flags flags, bool scroll // if we read data slower than it arrives in the fifo, limiting the // iteration number allows us to go back go back to the event loop and // handle other events sources (such as input) - constexpr size_t max_loop = 16; + constexpr size_t max_loop = 1024; bool closed = false; size_t loop = 0; char data[buffer_size];