forked from M-Labs/artiq
protocols: increase asyncio line limit. Closes #671
This commit is contained in:
parent
f5cd0928c3
commit
c777ae8ae9
|
@ -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())
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue