mirror of https://github.com/m-labs/artiq.git
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:
parent
282f4256e0
commit
f36f00a83d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue