From 53ed7436f6eb16bd609e8fb2a4478bb737a3824a Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 27 Jan 2019 10:06:08 +0100 Subject: Increase subprocess’ StreamReader limits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’re sending quite big JSON objects since 3a2fcc69a8eb4237b2862b3e291971d38748f115. --- crocoite/controller.py | 2 +- crocoite/irc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crocoite/controller.py b/crocoite/controller.py index e250cc5..cbc6662 100644 --- a/crocoite/controller.py +++ b/crocoite/controller.py @@ -331,7 +331,7 @@ class RecursiveController: try: process = await asyncio.create_subprocess_exec (*command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.DEVNULL, stdin=asyncio.subprocess.DEVNULL, - start_new_session=True) + start_new_session=True, limit=100*1024*1024) while True: data = await process.stdout.readline () if not data: diff --git a/crocoite/irc.py b/crocoite/irc.py index 0c1db39..1b0fa1b 100644 --- a/crocoite/irc.py +++ b/crocoite/irc.py @@ -435,7 +435,7 @@ class Chromebot (ArgparseBot): stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.DEVNULL, stdin=asyncio.subprocess.DEVNULL, - start_new_session=True) + start_new_session=True, limit=100*1024*1024) while True: data = await j.process.stdout.readline () if not data: -- cgit v1.2.3