From f36f00a83d6d81fc1ff15d2d2486892a2519d543 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 26 Jun 2017 08:39:16 +0000 Subject: [PATCH] artiq_devtool: do not chop up the TCP stream into 1024 byte chunks. This makes the smoltcp behavior quite different than without the TCP forwarding (and can mask smoltcp issues). --- artiq/frontend/artiq_devtool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/frontend/artiq_devtool.py b/artiq/frontend/artiq_devtool.py index dd4798a19..16b53863a 100755 --- a/artiq/frontend/artiq_devtool.py +++ b/artiq/frontend/artiq_devtool.py @@ -134,12 +134,12 @@ def main(): try: r, w, x = select.select([local_stream, remote_stream], [], []) if local_stream in r: - data = local_stream.recv(1024) + data = local_stream.recv(65535) if data == b"": break remote_stream.send(data) if remote_stream in r: - data = remote_stream.recv(1024) + data = remote_stream.recv(65535) if data == b"": break local_stream.send(data)