Commit ea896cfa authored by Jonas Kaufmann's avatar Jonas Kaufmann
Browse files

symphony/runtime/command_exector.py: read more than a single line at once

parent 98dbc60a
...@@ -89,7 +89,7 @@ class CommandExecutor: ...@@ -89,7 +89,7 @@ class CommandExecutor:
self, stream: asyncio.StreamReader, consume_fn: typing.Callable[[bytes], None] self, stream: asyncio.StreamReader, consume_fn: typing.Callable[[bytes], None]
) -> None: ) -> None:
while True: while True:
bs = await stream.readline() bs = await stream.read(4096)
if bs: if bs:
await consume_fn(bs) await consume_fn(bs)
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment