forked from M-Labs/artiq
1
0
Fork 0

protocols: increase asyncio line limit. Closes #671

This commit is contained in:
Sebastien Bourdeauducq 2017-02-17 20:46:23 +08:00
parent f5cd0928c3
commit c777ae8ae9
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class Receiver:
async def connect(self, host, port):
self.reader, self.writer = \
await asyncio.open_connection(host, port, limit=4*1024*1024)
await asyncio.open_connection(host, port, limit=100*1024*1024)
try:
self.writer.write(_init_string)
self.writer.write((self.name + "\n").encode())

View File

@ -201,7 +201,7 @@ class AsyncioClient:
this method is a coroutine. See ``Client`` for a description of the
parameters."""
self.__reader, self.__writer = \
await asyncio.open_connection(host, port, limit=4*1024*1024)
await asyncio.open_connection(host, port, limit=100*1024*1024)
try:
self.__writer.write(_init_string)
server_identification = await self.__recv()

View File

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