summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-01-27 10:06:08 +0100
committerLars-Dominik Braun <lars@6xq.net>2019-01-27 10:07:02 +0100
commit53ed7436f6eb16bd609e8fb2a4478bb737a3824a (patch)
treedc527fdf969634b236c8da9d0aa996cd77d05c9c /crocoite
parent75c8e1c611ae57853dc1151e935d4596ca671d43 (diff)
downloadcrocoite-53ed7436f6eb16bd609e8fb2a4478bb737a3824a.tar.gz
crocoite-53ed7436f6eb16bd609e8fb2a4478bb737a3824a.tar.bz2
crocoite-53ed7436f6eb16bd609e8fb2a4478bb737a3824a.zip
Increase subprocess’ StreamReader limits
We’re sending quite big JSON objects since 3a2fcc69a8eb4237b2862b3e291971d38748f115.
Diffstat (limited to 'crocoite')
-rw-r--r--crocoite/controller.py2
-rw-r--r--crocoite/irc.py2
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: