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
1 changed files with 2 additions and 2 deletions

View File

@ -134,12 +134,12 @@ def main():
try: try:
r, w, x = select.select([local_stream, remote_stream], [], []) r, w, x = select.select([local_stream, remote_stream], [], [])
if local_stream in r: if local_stream in r:
data = local_stream.recv(1024) data = local_stream.recv(65535)
if data == b"": if data == b"":
break break
remote_stream.send(data) remote_stream.send(data)
if remote_stream in r: if remote_stream in r:
data = remote_stream.recv(1024) data = remote_stream.recv(65535)
if data == b"": if data == b"":
break break
local_stream.send(data) local_stream.send(data)