From bfa2f0664ff7e256d2f467e5bedec33cbaa2ce8f Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Thu, 30 Nov 2023 16:27:43 +0100 Subject: [PATCH] taskloop: Set an effectively unbounded chunk limit for subprocess stdio The small default of 64k might be suitable for public-facing servers to prevent DoS, but not for our usecases where we might transfer large amounts of data between processes. --- src/yosys_mau/task_loop/process.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/yosys_mau/task_loop/process.py b/src/yosys_mau/task_loop/process.py index 6476ebe..2e42639 100644 --- a/src/yosys_mau/task_loop/process.py +++ b/src/yosys_mau/task_loop/process.py @@ -243,6 +243,7 @@ async def on_run(self) -> None: stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd, + limit=1 << 60, **subprocess_args, ) self.__process_started = True