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 f4ae166a4c
commit bd55436668
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ class Receiver:
async def connect(self, host, port): async def connect(self, host, port):
self.reader, self.writer = \ 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: try:
self.writer.write(_init_string) self.writer.write(_init_string)
self.writer.write((self.name + "\n").encode()) 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 this method is a coroutine. See ``Client`` for a description of the
parameters.""" parameters."""
self.__reader, self.__writer = \ 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: try:
self.__writer.write(_init_string) self.__writer.write(_init_string)
server_identification = await self.__recv() server_identification = await self.__recv()

View File

@ -67,7 +67,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, limit=4*1024*1024) await asyncio.open_connection(host, port, limit=100*1024*1024)
try: try:
if before_receive_cb is not None: if before_receive_cb is not None:
before_receive_cb() before_receive_cb()