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

View File

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