mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 11:48:27 +08:00
protocols: increase asyncio line limit. Closes #671
This commit is contained in:
parent
f4ae166a4c
commit
bd55436668
@ -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())
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user