forked from M-Labs/artiq
1
0
Fork 0

protocols/sync_struct: raise asyncio line length limit

This commit is contained in:
Sebastien Bourdeauducq 2016-02-22 02:11:36 +08:00
parent e177bbd480
commit 8da455d5db
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class Subscriber:
async def connect(self, host, port, before_receive_cb=None): async def connect(self, host, port, before_receive_cb=None):
self.reader, self.writer = \ self.reader, self.writer = \
await asyncio.open_connection(host, port) await asyncio.open_connection(host, port, limit=4*1024*1024)
try: try:
if before_receive_cb is not None: if before_receive_cb is not None:
before_receive_cb() before_receive_cb()