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).
This commit is contained in:
whitequark 2017-06-26 08:39:16 +00:00
parent 282f4256e0
commit f36f00a83d

View File

@ -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)