Skip to content

Commit bbef353

Browse files
committedMar 23, 2016
protocols/pipe_ipc: raise line length limit
1 parent 8f54a1e commit bbef353

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎artiq/protocols/pipe_ipc.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async def read(self, n):
2222

2323
if os.name != "nt":
2424
async def _fds_to_asyncio(rfd, wfd, loop):
25-
reader = asyncio.StreamReader(loop=loop)
25+
reader = asyncio.StreamReader(loop=loop, limit=4*1024*1024)
2626
reader_protocol = asyncio.StreamReaderProtocol(reader, loop=loop)
2727
rf = open(rfd, "rb", 0)
2828
rt, _ = await loop.connect_read_pipe(lambda: reader_protocol, rf)
@@ -128,7 +128,7 @@ async def create_subprocess(self, *args, **kwargs):
128128
loop = asyncio.get_event_loop()
129129

130130
def factory():
131-
reader = asyncio.StreamReader(loop=loop)
131+
reader = asyncio.StreamReader(loop=loop, limit=4*1024*1024)
132132
protocol = asyncio.StreamReaderProtocol(reader,
133133
self._child_connected,
134134
loop=loop)
@@ -189,7 +189,7 @@ def __init__(self, address):
189189

190190
async def connect(self):
191191
loop = asyncio.get_event_loop()
192-
self.reader = asyncio.StreamReader(loop=loop)
192+
self.reader = asyncio.StreamReader(loop=loop, limit=4*1024*1024)
193193
reader_protocol = asyncio.StreamReaderProtocol(
194194
self.reader, loop=loop)
195195
transport, _ = await loop.create_pipe_connection(

0 commit comments

Comments
 (0)
Please sign in to comment.